Sinisterly
[Python] FTP Brute - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Python (https://sinister.li/Forum-Python)
+--- Thread: [Python] FTP Brute (/Thread-Python-FTP-Brute)

Pages: 1 2


RE: [Python] FTP Brute - noize - 06-26-2013

(06-26-2013, 11:07 PM)mls577 Wrote:
(06-26-2013, 11:01 PM)noize Wrote:
(06-26-2013, 10:57 PM)mls577 Wrote: I don't want it to break, because I want it to continue trying all the login combinations, even if it has already found one.

Oh, well, you're right, I didn't think about when the user chooses to use the "multi" option.

Quote:whether the usage should be displayed for both is relative, I think it's fine either way. For the life of me, I can't figure out why this won't work. I keep changing and trying different things, but for some god forsaken reason it won't just work. I wrote this nearly a year ago, and thought I got it to work properly, guess not.

thanks for the help. I'll keep working to figure this out.

I tried switching a few error codes but I just can't get it too. Does it work for you?

no, I still can't get it to work properly for some reason. We could work on this together?

I'm eager to help in any way I can. Maybe the problem is not in the returned code but in the sent data instead?

Edit: how about this code?

Code:
from ftplib import FTP ftp = FTP(user + ":" + pass + "@" + host + ":" + port) ftp.login()

Edit: wait, I just got a working code, switching to PM...


RE: [Python] FTP Brute - mls577 - 06-27-2013

Got working code now, thread updated.


RE: [Python] FTP Brute - noize - 06-27-2013

Copying and pasting the current OP's code I get this output:

Code:
###########################################################################​ # FTP BRUTE 1.0 # # # # Coded by mls577 and noize # # #suidrewt and #haxme # ###########################################################################​

Look at the end of the lines.

Try copying and pasting that code and running it. If it looks like that for you too try updating your def usage() block with this code:

Code:
def usage(): print("\n ###########################################################################") print(" # FTP BRUTE 1.0 #") print(" # #") print(" # Coded by mls577 and noize #") print(" # #suidrewt and #haxme #") print(" ###########################################################################") print("\n Usage: ftpbrute.py [host] [single | multi] [username | userslist] [passlist]") print("\n Examples:") print("\n ftpbrute.py www.example.com single admin pass.txt") print(" ftpbrute.py www.example.com multi users.txt pass.txt")



RE: [Python] FTP Brute - mls577 - 06-27-2013

(06-27-2013, 11:37 AM)noize Wrote: Copying and pasting the current OP's code I get this output:

Code:
###########################################################################​ # FTP BRUTE 1.0 # # # # Coded by mls577 and noize # # #suidrewt and #haxme # ###########################################################################​

Look at the end of the lines.

Try copying and pasting that code and running it. If it looks like that for you too try updating your def usage() block with this code:

Code:
def usage(): print("\n ###########################################################################") print(" # FTP BRUTE 1.0 #") print(" # #") print(" # Coded by mls577 and noize #") print(" # #suidrewt and #haxme #") print(" ###########################################################################") print("\n Usage: ftpbrute.py [host] [single | multi] [username | userslist] [passlist]") print("\n Examples:") print("\n ftpbrute.py www.example.com single admin pass.txt") print(" ftpbrute.py www.example.com multi users.txt pass.txt")

That doesn't run like that for me. Do you want me to update it with that? I can if you think it's happening for others. Maybe someone else will give us their opinion.


RE: [Python] FTP Brute - Ex094 - 07-06-2013

Nice work, I'm gonna make one myself too Smile


RE: [Python] FTP Brute - Ex094 - 07-06-2013

Nice work, I'm gonna make one myself too Smile


RE: [Python] FTP Brute - Ex094 - 07-06-2013

Nice work, I'm gonna make one myself too Smile


RE: [Python] FTP Brute - mls577 - 07-06-2013

(07-06-2013, 08:28 AM)Ex094 Wrote: Nice work, I'm gonna make one myself too Smile

Thank you Smile


RE: [Python] FTP Brute - mls577 - 07-06-2013

(07-06-2013, 08:28 AM)Ex094 Wrote: Nice work, I'm gonna make one myself too Smile

Thank you Smile


RE: [Python] FTP Brute - mls577 - 07-06-2013

(07-06-2013, 08:28 AM)Ex094 Wrote: Nice work, I'm gonna make one myself too Smile

Thank you Smile