Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (0)

Powered by Vanilla. Made with Bootstrap.
Sensitive file uploader/deleter
  • Many great hackers such as Kevin Mitnick have all used one good tactic just in case they get raided or need to get their sensitive files off their local computer. I've already made my guide on encrypting sensitive documents with GPG so they're very secure. The next step may be a little drastic, but is good if you're paranoid. What many great hackers have done in the past is:
    1. Encrypt sensitive files such as passwords and illegal files(Read my guide on encrypting with GPG)
    2. Uploaded them to an offshore(preferred) FTP server
    3. Deleted sensitive files off local hard drive. By that I mean they completely shredded the files securely off the drive.

    So what I've started is a project to automate this process for you in the click of a button or just by typing the command into the terminal. I've written the code in Python. It's unfinished but has the basics down.


    #!/usr/bin/python
    #Sends sensitive files over FTP then deletes them
    import os, sys, ftplib
    #Files to be uploaded
    file1 = '/home/chronic/.scrt/users.gpg'
    file1stor = '/users.gpg' #file#stor is used for what the file will be called and in which directory on the FTP server
    file2 = '/home/chronic/.scrt/exploits.tar.gz.gpg'
    file2stor = '/exploits.tar.gz.gpg'
    file3 = '/home/chronic/.scrt/0days.tar.gz.gpg'
    file3stor = '/0days.tar.gz.gpg'
    file4 = '/home/chronic/.scrt/malware.tar.gz.gpg'
    file4stor = '/malware.tar.gz.gpg'

    def ftp1():
    #FTP code taken from a site on google(Not my code). But it is a very common code.
    s = ftplib.FTP('ftp.t35.com','chroniccommand.t35.com','pass') # Connect
    f = open(file1,'rb') # file to send
    s.storbinary('STOR ' + file1stor, f) # Send the file
    f.close() # Close file and FTP
    s.quit()

    def ftp2():
    s = ftplib.FTP('ftp.t35.com','chroniccommand.t35.com','pass') # Connect
    f = open(file2,'rb') # file to send
    s.storbinary('STOR ' + file2stor, f) # Send the file
    f.close() # Close file and FTP
    s.quit()

    def ftp3():
    s = ftplib.FTP('ftp.t35.com','chroniccommand.t35.com','pass') # Connect
    f = open(file3,'rb') # file to send
    s.storbinary('STOR ' + file3stor, f) # Send the file
    f.close() # Close file and FTP
    s.quit()

    def ftp4():
    s = ftplib.FTP('ftp.t35.com','chroniccommand.t35.com','pass') # Connect
    f = open(file4,'rb') # file to send
    s.storbinary('STOR ' + file4stor, f) # Send the file
    f.close() # Close file and FTP
    s.quit()

    def delete():
    os.remove(file1)
    os.remove(file2)
    os.remove(file3)
    os.remove(file4)


    ftp1()
    ftp2()
    ftp3()
    ftp4()
    delete()
    sys.exit()

  • undead
    Posts: 822
    Useful code. Thanks for sharing.
  • Sh3llc0d3
    Posts: 1,910
    This is how things should be... making stuff from what you learn and advancing. Noticed you used code from your securing files guide :)
  • said:


    Useful code. Thanks for sharing.



    No problem. It's not done yet though I still have to work on the file shredder.
  • Nice work bro Thanks for Share.
  • UPDATE: It's all finished. Added delete function.