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
#!/bin/bash | |
ns_setup() | |
{ | |
ip netns add ns1 | |
for i in $(seq 1 5); do | |
ip -n ns1 link add name out$i up type dummy | |
ip -n ns1 addr add 203.0.113.$((i*2))/31 dev out$i | |
done |
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
dropwatch> set alertmode packet | |
Setting alert mode | |
Alert mode successfully set | |
dropwatch> | |
dropwatch> set trunc 64 | |
Setting truncation length to 64 | |
Truncation length successfully set | |
dropwatch> | |
dropwatch> show | |
Getting existing configuration |
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
dropwatch> set alertmode packet | |
Setting alert mode | |
Alert mode successfully set | |
dropwatch> | |
dropwatch> set trunc 64 | |
Setting truncation length to 64 | |
Truncation length successfully set | |
dropwatch> | |
dropwatch> show | |
Getting existing configuration |
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
dropwatch> set alertmode packet | |
Setting alert mode | |
Alert mode successfully set | |
dropwatch> | |
dropwatch> set trunc 64 | |
Setting truncation length to 64 | |
Truncation length successfully set | |
dropwatch> | |
dropwatch> show | |
Getting existing configuration |
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
import argparse | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("asm", help="assembly code file", type=str) | |
parser.add_argument("output_asm", help="assembly output file", type=str) | |
parser.add_argument("offset", help="aslr offset (e.g. 0xffff)", type=str) | |
args = parser.parse_args() |