-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify data format, remove hex data from flow item. The old format is terribly inefficient, and moving it to gridFS is slow and clunky, even if you were to manually handle appends. Data is capped at 15 MB, to stay well under the document limit of 16MB. Any data beyond that is discarded, but the start of the session will remain searchable.
- Loading branch information
1 parent
fd63d22
commit b286bd3
Showing
8 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from pwn import * | ||
import threading | ||
|
||
l = listen(1337) | ||
r = remote("localhost", 1337) | ||
|
||
r.sendline(b"This should be searchable") | ||
l.sendlineafter(b"This should be searchable", b"And so should this line") | ||
|
||
def listen(p): | ||
p.recvall() | ||
def send(p): | ||
g = cyclic_gen(n=8) | ||
payload = g.get(6*1024*1024) | ||
p.sendlineafter(b"line", payload) | ||
|
||
sender = threading.Thread(target=send, args=(r,)) | ||
listener = threading.Thread(target=listen, args=(l,)) | ||
sender.start() | ||
listener.start() | ||
|
||
|
||
print("sent") | ||
|
||
|
||
sender.join() | ||
listener.join() | ||
|