Last active
August 24, 2018 15:43
-
-
Save mjdorma/9045130 to your computer and use it in GitHub Desktop.
Revisions
-
mjdorma renamed this gist
May 3, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mjdorma revised this gist
Feb 17, 2014 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,14 +3,16 @@ import os import time import virtualbox # Assume machine is already running. vbox = virtualbox.VirtualBox() machine = vbox.find_machine("win7") session = machine.create_session() # Capture network traffic for 60 seconds. adapter = session.machine.get_network_adapter(0) adapter.trace_file = os.path.abspath('mycapture.pcap') adapter.trace_enabled = True time.sleep(60) adapter.trace_enabled = False -
mjdorma revised this gist
Feb 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ session = machine.create_session() adapter = session.machine.get_network_adapter(0) adapter.trace_file = os.path.abspath('mycapture.pcap') adapter.trace_enabled = True # Capture network traffic for 60 seconds. time.sleep(60) adapter.trace_enabled = False -
mjdorma renamed this gist
Feb 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ """pyvbox: Capture network traffic from adapter. """ import os import time -
mjdorma renamed this gist
Feb 17, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mjdorma revised this gist
Feb 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import virtualbox vbox = virtualbox.VirtualBox() machine = vbox.find_machine("win7") machine.launch_vm_process() session = machine.create_session() adapter = session.machine.get_network_adapter(0) adapter.trace_file = os.path.abspath('mycapture.pcap') adapter.trace_enabled = True -
mjdorma created this gist
Feb 17, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ """pyvbox:Capture network traffic from adapter. """ import os import time import virtualbox vbox = virtualbox.VirtualBox() machine = vbox.find_machine("win7") machine.launch_vm_process() session = m.create_session() adapter = session.machine.get_network_adapter(0) adapter.trace_file = os.path.abspath('mycapture.pcap') adapter.trace_enabled = True # capture network traffic for 60 seconds time.sleep(60) adapter.trace_enabled = False