SFTP Snapshot

SFTP Snapshot:

If you have managed a website before, you most probably have seen a hacked website. Sometimes you notice that your website is not functioning properly, or some pages show an error message. Then when you look at the files on the server, using FTP or SFTP (secure FTP), you notice that some of the PHP or JavaScript files are compromised; some new directories are created, and maybe thousands of files with gibberish names are in it. So you look at the log files and you notice that the first attack happened 10 or 20 days ago, changing one or two of the files or injecting some malicious code in the server. The hacker did not do anything for days, and when he would be sure that nobody noticed that, he used that malicious code to infect many other files, and use your server to send viruses to thousands of others around the world.

At this point you scan the whole website diligently, and replace all the infected files with the files from latest backup; so everything is fine for a few days and after that, you would find that there are still some files left infected, in the dark corners of the server that you could not find them. After several tries, you give up finding all the infected files and think that the only way is to clear everything on the server and upload the latest backup from scratch. But with tens of thousands of files on the server, it means your website will be down for at least one or two days, which is not a good option anyway.

I am not claiming I have seen it all, but I have been through this before. At that point I searched for a FTP client which recursively can sweep all the directories on the server, and list all the files there, but I could not find any. That’s why I came up with an idea to make a tool just for this.

SFTP_Snapshot is that tool. Just like any SFTP client, it connects to a server, but it does not upload/download files. By selecting a folder, and clicking on Snapshot button, it recursively goes through all the directories on the server, and list all the properties of the files there, and show that in the right side tree view.

The Snapshot taken from a folder can be saved in a Comma Separated format file. By opening that file in Microsoft Excel, you can sort it on date and see when a file is changed.

Download it from Here: SFTP-SNAPSHOT , and if you would like it, please do not forget to like & follow us on FaceBook and Twitter.