50
mogspls
6y

My coding-senpai placed this PHP code (before he left) to my org's custom-footer due to a feud that happened months ago

it flooded their cPanel with folders with '.log' as their extension everytime someone visits their website

I LOL'D UNTIL
..They hired me to clean it up :^(

They got over 700,000 of these folders
#feelsbadman

Comments
  • 8
  • 3
    That's fkin genius
  • 5
    Shouldn't be too hard to remove, though. Is it?
  • 9
    @aritzh Deleting 700,000 folders.... Here in the Philippines... With Philippine Internet Speed..

    I couldn't even load public_html anymore cause it's so flooded LMFAO ;A; kill me
  • 10
    @mogspls can you not just SSH into the server, and basically 'rm -r *.log'? I guess if you use FTP you might be in trouble, but just sshing should handle it rather well
  • 5
    @aritzh I mean, my org doesn't care whether we use SSH or FTP. It's just that my school's ITD put up this Firewall that prevents people from using SSH and FTP-

    We're not even allowed to ACCESS cPanel without notifying ITD or admin LMFAO
  • 4
    @aritzh I mean, I COULD SURELY DO IT AT HOME AND SAVE THEIR ASSES BUT NOPE
  • 11
    @mogspls or you could use a VPN. I have a Raspberry Pi 3 at home, with openvpn setup. University blocks torrent, steam, or whatever other monsense? Not anymore!
    They once even tried to block the default openvpn port (I think it is 4545, but cannot remeember), and I put the VPN server on port 443 (HTTPS), which made it almost impossible to block. A few weeks later they unblocked 4545.
  • 2
    That's a perfect time to do sudo rm -rf /
  • 4
    @mahaDev NO PLEASE I NEED THE SCHOLARSHIP :'(
  • 0
    Evil, me likez! ๐Ÿ˜ˆ๐Ÿ˜ˆ๐Ÿ˜ˆ
    I feel sorry for you though..& at least you doscovered the mkdir thingy.. ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‡
  • 0
    @aritzh Hi! How do you delete with SSH again?

    These are empty folders with '.log' at the end- it still doesn't delete for some reason- can you help me?
  • 1
    @mogspls if the name of the folders end with ".log" and you have SSH'd into the machine, and CD'd into the folder containing the folders to delete, you could just "rm -rf *.log". However, make sure no other file ends with .log, because that command will remove all files and directories (that are inside the current directory) whose name end with .log.

    In this case, you mention they are empty. Therefore, a safer option would be to use rmdir, which only removes empty directories. So, the command would be "rmdir *.log"
  • 1
    @aritzh Nevermind- Thanks! I got to fix it with this command C:

    find . -name "*.log" -delete
Add Comment