GinjaChris / pentmenu

A bash script for recon and DOS attacks
GNU General Public License v3.0
499 stars 218 forks source link

Add md5/sha checksum for extraction module #35

Closed GinjaChris closed 7 years ago

GinjaChris commented 7 years ago

I should add an md5 and/or sha checksum to the icmp extraction and receiver modules

GinjaChris commented 7 years ago

I'm not sure if anyone has done any real testing with hping's icmp extraction capabilities, but the changes I've made now make it more functional than the previous implementation. It still seems to produce files larger than the originals (hence why I will not be implementing https://github.com/GinjaChris/pentmenu/issues/35) however the fies are usable. As an exampe, a transferred PDF file was twice the original size, and contained the original data repeated twice, but opened correctly as a PDF file.
An extracted text file would not open with a text editor, but did open correctly in LibreOffice Writer. Hence, there is no point in adding a checksum to sender and receiver since they will not match.

Output to a terminal (stdout) on the receiver does not seem to suffer these problems, and records the output correctly, but we want to record to a file; saving to stdout is fine for a text file, but not helpful if we are extracting a PDF etc.

I believe these issues are due to the way that hping sends the files over ICMP; at the very least it adds extra 'nonsense' to the end of the files since it continues to send the ICMP packets even after the file has been transferred.

On the other hand, even after extensive tinkering and testing, I could just be doing something incredibly silly.

Anyway, the ICMP extraction module DOES work, it's jst a little unorthodix in the results.

Related change: 59f755b578d0b50d607b38541ba6c695f4d81705