Register - Login
Views: 99834585
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 10:08:13 PM
Jul - Posts by groundswells
groundswells
Random nobody
Level: 4


Posts: 1/2
EXP: 191
For next: 88

Since: 10-27-09


Since last post: 12.5 years
Last activity: 12.5 years

Posted on 10-27-09 03:15:26 PM, in remove iframe injection Link
I have a friend with a dreamhost account that had all their domains hacked this same way. By any chance are you a dreamhost customer as well and was the timestamp on the changed files 10/23 16:31? I'm not finding from apache logs, anything around this timestamp and nothing in the authentication logs for my user.

On the side of a solution, from a shell account in the directory you want to find the files:

find ./ -type f | while read ; do grep -l davtraff "$REPLY" ; done > davtraff.txt
cat davtraff.txt | while read ; do perl -ni.bak -e 'print unless /davtraff/;' "$REPLY" ; done

Since this line is added to the end of the file, you can wack any line with 'davtraff' (granted you don't use davtraff in your real code anywhere). The first line will find all the files with davetraff in them. The second line will take the list of files generated from the first line and then remove line with davtraff in it, while creating a .bak backup file just in case.

If you are happy with the results you could then run:

cat davtraff.txt | while read ; do rm "$REPLY" ; done
or
cat davtraff.txt | while read ; do mv "$REPLY" ; done

groundswells
Random nobody
Level: 4


Posts: 2/2
EXP: 191
For next: 88

Since: 10-27-09


Since last post: 12.5 years
Last activity: 12.5 years

Posted on 10-28-09 01:12:12 AM, in remove iframe injection Link
Originally posted by groundswells

If you are happy with the results you could then run:

cat davtraff.txt | while read ; do rm "${REPLY}.bak" ; done
or
cat davtraff.txt | while read ; do mv "${REPLY}.bak" ; done



Corrected that horrible last clean up suggestion as what is in the original post would have deleted the live corrected version.

btw, I found my hacker. They uploaded a php shell program a few months ago named doc.php that was used to add that iframe line.
Jul - Posts by groundswells


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

19 database queries, 3 query cache hits.
Query execution time: 0.101031 seconds
Script execution time: 0.004218 seconds
Total render time: 0.105249 seconds