| | |
Hit by Gumblar.a (search/replace should fix it)
![]() |
•
•
Join Date: Jun 2009
Posts: 1
Reputation:
Solved Threads: 0
The Gumblar.a trojan infected 4 sites on my Hostmonster server. This should be easy to fix if I knew what to enter through the SSH command line to do a search and replace. The string that needs to be replaced recursively through hundreds of files in multiple folders is a long javascript string that contains forward slashes, back slashes, and quotation marks. How can we write a search & replace for a fairly long block of text that contains characters that are otherwise reserved for the Linux command itself?
FYI: the virus inserted a javascript in the head of every HTML file, the bottom of every PHP file, and appended a line of text into every .js file. Not hard to clean out of the sites, but nasty if it infects local machines. It loads Trojans onto the visitor's machine. In this case, it got each of the sites listed by Google as an "attack site". Big warning page appears when you enter the site. 10's of 1000's of sites were infected. In my case, a php config file had permissions set at 744. Too high. Lowered the permissions and it should be less vulnerable now.
FYI: the virus inserted a javascript in the head of every HTML file, the bottom of every PHP file, and appended a line of text into every .js file. Not hard to clean out of the sites, but nasty if it infects local machines. It loads Trojans onto the visitor's machine. In this case, it got each of the sites listed by Google as an "attack site". Big warning page appears when you enter the site. 10's of 1000's of sites were infected. In my case, a php config file had permissions set at 744. Too high. Lowered the permissions and it should be less vulnerable now.
![]() |
Similar Threads
- Search and replace multiple file (Python)
- Search and Replace (VB.NET)
- File handling: How to search and replace strings in file using user input (C)
- Search and replace with re:compile(....) (Python)
- Datagrid Search and Replace (Visual Basic 4 / 5 / 6)
- Quick search & replace with c-strings? (C)
- search and replace (Java)
Other Threads in the Viruses, Spyware and other Nasties Forum
- Previous Thread: Help Me...
- Next Thread: can only open web pages with a reboot
| Thread Tools | Search this Thread |
adware anti-malware anti-virussitesaccessissue antivirus attack audio avg backtoschoolspeech bar blackhat botnet botnets censorship china commercial commercials conficker connect control crosssitescripting cyber cybercrime cyberwarfare ddos domains e-mafia education email europe exam exploit facebook fake fancheckvirus gaming gumblar halloween herss.exe hijack hosting internet iphone kaspersky legal logfiles mail malware mcafee mega-d messagelabs microsoft mobile nazi news obama onlinethreats paedophile panel parents patch phishing police policeprovirusmba-mblockedinternetaccess president privacy pro problem redirect redirecting reliability report research risk rogueantivirus samhain sans scareware school search security seopoisoning software spam spyware spywareexternalwindows7adminstratortrojans sqlinjection symantec trojan unwanted update usa virus viruses vista war warning windows worm yahoo zeroday





