Archive

‘Linux’ 分类存档

被恶意注入钓鱼网站链接

当游览blog时,发现网站左上角有奇怪的link,点进去后竟是黄网。。。想了想这几天没点什么不正常的网站呀,前几天还是好好的,啥情况。。。😓

我需要找到这个link在哪里,经过TS排查,发现link只会出现在我现有这个主题下,换主题就没问题了,所以我去blog管理台找,发现找不到。。。后来登录我的vps,用下面方式找到,注:网站名称已被我隐去:

[root@frank wordpress_data]# find . | xargs grep -ri "xxxx"
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
./wp-content/themes/page-shippou/header.php:<div id="1049"><a href="https://xxxx.com">xxx voglio</a></div>
grep: ./wp-content/plugins/backupwordpress/vendor/symfony/finder/Tests/Fixtures/with: No such file or directory
grep: space: No such file or directory
grep: ./wp-content/plugins/backupwordpress/vendor/symfony/finder/Tests/Fixtures/with: No such file or directory
grep: space/foo.txt: No such file or directory

现在才发现wordpress控制台下search不太好使呀。。。按照路径找到文件,找到下面内容删掉后恢复,然后赶紧改admin密码😅,先观察几天再说:

1+

New install NSO and Connect with XR by CLI/Netconf NED

Not update any NSO article to my blog, I will put more NSO info to here, wish that will help more guys. The article will include more hands-on experiences, help beginner fast connect xr devices with nso by cli or netconf ned. For netcong NED, build by Pioneer at former, that need to manual exclude the Yang file that no support. In the article, will build netconf ned by native tool of NSO 5.2.0.

Platform Info

[root@nso opt]# ncs --version
5.2.0.1
[root@nso opt]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
RP/0/RP0/CPU0:frank#show ins ac sum
Wed Aug  7 01:53:03.286 UTC
    Active Packages: 1
        xrv9k-xr-6.6.3.14I version=6.6.3.14I [Boot image]

完整阅读

-1+

Deploy TRex in Centos7.4

TRex based on DPDK, have high performance for traffics generator scenario. TRex has two deployment scenarios, one is Stateless mode, another is Server/client mode. How different for them? As follow pic. Btw, TRex has a GUI tool that can easy config traffic pattern, but that only support in Stateless mode. For Server/Client mode, only CLI (you can reference “Linux SRv6实战 (第三篇) 多云环境下Overlay(VPP) 和Underlay整合测试 ” that use Server/Client mode). For the article, only focus on stateless mode and GUI tool. 

完整阅读

0

Deploy OpenVPN on OpenWRT

My VPS(Bandwagon) include OpenVPN script, but only support Centos6.x that version not good for docker (my blog deploy by docker Blog顺利完成搬家之Bandwagonhost VPS), so need to do by other scripts. OpenWRT config OpenVPN client has some different, so summary the info to the article for review.

But due to GFW, OpenVPN couldn’t establish at last, reset happened between server and client, but the setup should workable.

Deploy OpenVPN at Server

Don’t know why couldn’t find OpenVPN pacakage by yum, even if have epel source

[root@frank ~]# rpm -qa |grep epel
epel-release-7-11.noarch
[root@frank ~]# yum install openvpn
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.usc.edu
 * extras: repos.lax.quadranet.com
 * updates: mirror.fileplanet.com
No package openvpn available.
Error: Nothing to do

完整阅读

0

OpenR on NCS5500

For detail info, please refer to following  Akshat’s article, for my article only simply summary step to build openr on ncs5500. Thanks Akshat’s help for the openr set up 🙂

https://xrdocs.io/cisco-service-layer/blogs/2018-02-16-xr-s-journey-to-the-we-b-st-open-r-integration-with-ios-xr/

1. Set up the private insecure registry on your server

Refer as follow:

https://docs.docker.com/registry/deploying/ 

https://xrdocs.io/application-hosting/tutorials/2017-02-26-running-docker-containers-on-ios-xr-6-1-2/#private-insecure-registry

[root@nso ~]# nano /etc/yum.repos.d/docker.repo
[root@nso ~]# yum install docker-engine 
[root@nso ~]# systemctl start docker
[root@nso ~]# docker run -d -p 5000:5000 --restart=always --name registry registry:2
[root@nso ~]# docker pull akshshar/openr-xr
[root@nso ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
c4636568f48a        registry:2          "/entrypoint.sh /e..."   6 minutes ago       Up 6 minutes        0.0.0.0:5000->5000/tcp   registry

[root@nso ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
registry            2                   f32a97de94e1        13 days ago         25.8MB
akshshar/openr-xr   latest              b51c260b060e        2 months ago        1.76GB

[root@nso ~]# docker tag akshshar/openr-xr 10.75.58.72:5000/openr-xr
[root@nso ~]# docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
registry                    2                   f32a97de94e1        13 days ago         25.8MB
akshshar/openr-xr           latest              b51c260b060e        2 months ago        1.76GB
10.75.58.72:5000/openr-xr   latest              b51c260b060e        2 months ago        1.76GB
[root@nso ~]# docker push 10.75.58.72:5000/openr-xr
The push refers to a repository [10.75.58.72:5000/openr-xr]
Get https://10.75.58.72:5000/v1/_ping: http: server gave HTTP response to HTTPS client
[root@nso ~]# 

2. Add follow at “/etc/sysconfig/docker”

After changing the docker opts, please wait some seconds, docker will auto restart.

DOCKER_OPTS=" --insecure-registry 10.75.58.72:5000"

完整阅读

0
blonde teen swallows load.xxx videos