• I flagged this for version 3.3.1 but it doesn’t really matter.

    Some time back, I was tasked with helping out multiple sites that had been attacked, and had the virus/scam code attached into multiple php and html files. Several servers were involved, and I was limited to either ftp or cpanel access but no way to get in via putty or other tools, where I could use nice things like GREP to do massive searches.

    It was frustrating, needless to say, and I was again limited to very time consuming tasks. Ultimately, I was able to download site “backups” and they came into my Windows system. As we know, Windows is pretty crappy at searching files for text, so I wrote a simple program using Visual Studio 2005, in VB.net.

    The program allows for selecting a starting directory, along with selecting multiple file types and multiple search ‘texts’, and you can create optional reports.

    If files are found, the names and locations are displayed, and you can directly select those files to edit, using your choice of a defined editor.

    The program is small of course, and I would like to offer up to the community both the program and the source code for it (to prove it has nothing extra hidden in it, and the stand alone exe for those who can’t compile it), for free.

    The exe is around 70k in size, and the full source for the project is around 130k.

    The problem is of course, I don’t know how to make this available.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    https://github.com/ or post it on your own website.

    Since it’s that small you can post the source on pastebin and put the executable on a free sharing site like MediaFire or Drop.io and post the link(s) here. I’d sure appreciate it.

    Thanks!

    Also, how does it compare to WinGrep?

    http://www.wingrep.com/

    Thread Starter GaryDev

    (@garydev)

    Thanks for the replies. I have never heard of WinGrep before, so I went and peeked at it. It certainly is impressive, and has some nice features to it.

    Even after playing with it for a while, I found it a little confusing with all of the options. I never tried to “edit/replace” with it, because I am leery of modifying code ‘automatically’. So many things could be in so many places, and if you are doing a partial search (I think most people do) then who knows. I also found it kept giving me errors when I selected to edit a file, something about not running a program in a temp folder… but it did open up the selected source, using notepad.

    Anyway…

    My program runs just as fast, and keeps things VERY simple. It was designed to help this community specifically, and not as a general “do it all program”. Of course, once I release the source code (hey, this isn’t complicated stuff) then folks can of course, do what they want.

    TO start with, I just have the program and a doc file in a zip, posted in a phpBB forum on a site that I assist with managing. Don’t let the link scare you, you will not be pestered to play games (this site is like the old MSN Gaming Zone was, playing the old CDROM type games), nor will you be required to create an account to download the zip.

    I look forward to hearing comments… Not sure how this community would take to stuffing the forums here, but I will check back from time to time. I do check our site daily so… anyway, suit your self.

    http://www.digitalbloodsports.com/forums/viewtopic.php?f=3&t=557

    Thanks for your time 🙂

    Gary

    @ GaryDev

    WinGrep pretty much does everything you’re saying that yours does, and I believe even more (I’m not an expert with WinGrep, but I’ve used it in the past with no problem). WinGrep is not very user friendly. I had to play with it to get it to work right and that’s after I had some instruction from people who’ve been using it for years.

    I downloaded you utility and will test it out. Thanks!

    Thread Starter GaryDev

    (@garydev)

    No question WinGrep does a lot more. 🙂 For my purposes, way more than I needed…

    With that said, the above link now also contains the full source code for the program.

    To each their own. 🙂

    Gary

    (btw, if the Mods want to extract the functions/text/links here, and put it into a sticky some place, be my guest. My only goal was to offer back to the community something that was valuable to me. Cheers!)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Site hack fixing’ is closed to new replies.