搜尋此網誌

2015/2/4

[資安]c99 php shell

http://www.r57shell.net/shell/c99.txt

http://www.hackdig.com/?07/hack-11736.htm

C99 php webshell攻击加剧,大量WordPress站点遭受威胁
http://www.freebuf.com/news/101924.html


2015/2/2

使用 ssh 來 tar 遠端機器的檔案

使用 ssh 來 tar 遠端機器的檔案
(ssh root@gate "cd /;
tar cvf - user/intruder var/mail/intruder" ) > gate_user_intruder.tar
(ssh root@div3 "cd /etc; tar cvf - *") | tar xvf -

以此方式取代scp方能將owner,group,symbolic links等屬性一併複製

於target dir
ssh source_ip "cd /source_root_dir;tar cvf - source_dir"|tar xf -

於source dir
tar cvf - complete_source_dir | ssh target_ip "cd /target_root_dir;tar xf -"
tar cvf - ./source_dir | ssh target_ip "cd /target_dir;tar xf -"

使用 tar 來copy local files
tar cf - . |(cd /target;tar xf -)
tar cf - [a-vx-z]* |(cd /target;tar xf-)