This file contains hidden or 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
| #!/usr/bin/env python | |
| #------------------------------------------------------------- | |
| # Name: gitupdate.py | |
| # Purpose: Update all git repositories found in subfolders. | |
| # Author: stk | |
| # Created: 14/04/2013 | |
| # Copyright: (c) stk | |
| # Python Version: 2.7 | |
| # Dependencies: git,hg,svn | |
| #------------------------------------------------------------- |
This file contains hidden or 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
| # | |
| # TSHARK OUTPUTS HEX-ENCODED DATA IN STDOUT | |
| # | |
| tshark -r capture.pcap -R "tcp.stream eq 3" -T fields -E separator=, -e frame.time -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e data | |
| #[..] | |
| #Mar 23, 2013 00:23:24.689578000,10.13.38.54,33124,10.13.37.54,4444,373030300a | |
| #Mar 23, 2013 #00:23:24.689646000,10.13.37.54,4444,10.13.38.54,33124,426f726f6e206c6576656c20697320746f6f20686967683a203736343020286d61782031303030290a | |
| #[..] | |
| # |
This file contains hidden or 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
| #!/bin/bash | |
| ## | |
| ## Dissect network traffic from a PCAP file. | |
| ## Extract network bidirectional flows (source ip, source port, dest ip, dest port, timestamp) and | |
| ## store them in separate files | |
| ## | |
| ## Usage: dissect.sh <CAPTUREFILE.PCAP> <OUTPUTFOLDER> | |
| ## | |
| ## Options: | |
| ## -h, --help Display this message |
This file contains hidden or 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
| # >>> ACCESS TO ALL CLASSES --------------------------------------------------- | |
| ().__class__.__bases__[0].__subclasses__() | |
| # >>> INSTIANTIATE NEW OBJECTS ------------------------------------------------ | |
| [].__class__.__class__.__new__( <TYPE> , <SUBTYPE> ) | |
| [c for c in ().__class__.__base__.__subclasses__() if c.__name__ == '<CLASSNAME>'][0]() |
NewerOlder