huuck / ADBHoney

Low interaction honeypot designed for Android Debug Bridge over TCP/IP
GNU General Public License v3.0
160 stars 33 forks source link

Save only unique payloads #3

Closed fe7ch closed 5 years ago

fe7ch commented 5 years ago

When a payload is saved it should be hashed if it's already exists it's safe to delete the new file.

So the problem at this moment is the fact, that adbhoney overwrites the file everytime that updates creation time of the file.

fe7ch commented 5 years ago

@huuck one line fix is ready (#6)

bontchev commented 5 years ago

The current solution has a small problem - if the file already exists, file transfer is not logged. Could you please move the logging operators before the statement that checks whether the file exists?