Created
November 6, 2018 16:38
-
-
Save seanthegeek/4b9c3179d4d9b81ef83b1b3e3b570966 to your computer and use it in GitHub Desktop.
Sceipts to manually controll Cuckoo routing
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
#!/home/cuckoo/venv/bin/python | |
from cuckoo.misc import set_cwd | |
from cuckoo.core.rooter import rooter | |
vm_interface = "virbr0" | |
vpn_interface = "tun0" | |
vm_ip = "192.168.100.7" | |
rt_id = "tun0" | |
cwd = "/home/cuckoo/.cuckoo" | |
set_cwd(cwd) | |
rooter("forward_enable", vm_interface, vpn_interface, vm_ip) | |
rooter("srcroute_enable", rt_id, vm_ip) |
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
#!/home/cuckoo/venv/bin/python | |
from cuckoo.misc import set_cwd | |
from cuckoo.core.rooter import rooter | |
vm_interface = "virbr0" | |
vpn_interface = "tun0" | |
vm_ip = "192.168.100.7" | |
rt_id = "tun0" | |
cwd = "/home/cuckoo/.cuckoo" | |
set_cwd(cwd) | |
rooter("forward_disable", vm_interface, vpn_interface, vm_ip) | |
rooter("srcroute_disable", rt_id, vm_ip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment