Skip to content

Commit 7387b8e

Browse files
author
foreverneilyoung
committed
Trace STOP fixed
1 parent f9a9009 commit 7387b8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fritzcap.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
from g711_decoder import G711Decoder
1818

1919
# Configuration (just change here) ###############################################
20-
boxname = 'speedport.ip' # or ip (also fritz.box)
21-
password = 'yourpassword' # your password, adapt
22-
protocol = 'https' # or http
20+
boxname = 'mr01.dnsalias.com' # or ip (also fritz.box)
21+
password = 'Test01' # your password, adapt
22+
protocol = 'http' # or http
2323
capfolder = 'captures' # plus subfolders according to day, month, year, hour, minute
2424
capfile = 'capture.cap' # name of capture file
2525
login_required = True # set to 0 if no login is required
@@ -110,9 +110,9 @@ def main():
110110
# Clean stop
111111
print 'Stopping trace'
112112
if SID != '':
113-
urllib.urlopen(protocol + '://' + boxname + '/cgi-bin/capture_notimeout' + stop)
114-
else:
115113
urllib.urlopen(protocol + '://' + boxname + '/cgi-bin/capture_notimeout' + stop + "&sid=%s" % SID)
114+
else:
115+
urllib.urlopen(protocol + '://' + boxname + '/cgi-bin/capture_notimeout' + stop)
116116
print 'Capture done'
117117

118118
# Parse the captured file

0 commit comments

Comments
 (0)