rmitm 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/mitmdump.rb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGE5NjY4ZGMzNDQ2NTc4N2I5MDhkZjNlYmVkOTE4N2I5MjgyZmZmMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTlmOTI5Mjc0NWM2ZGUwMGZjMzVhODJmZGIzYjBiMzA4NzY3NThmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDExYjViOTIxYzA0MjM2MTFkMTk1ZTY2Y2U2ZmVkZmQyMWQ4OTFkMjBlNzZi
|
10
|
+
ODQ3OWY1ZDhjZTQ3Nzk3NTFkMTdlOGU0ZmIxNjkwMGE1MGNhNDQxM2UzZTg2
|
11
|
+
NzAxMWRmOTA1MDc5MzFmY2YxNDQzMjQ0ZDRiZjQ3NGJmMTkzYjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWMyZmM0ODFmZTNiZDIyN2E1MTM1OWE1NDFjY2FhYTlkZjJiZWNjYmRhMGQ3
|
14
|
+
ZjQ0MTQ4NGU0Mjg4ZWQyNzVlNjRhOTEzMzA1Y2U4NzU2ODY3YThmZTg1ZDQy
|
15
|
+
MzY4MDdiMmI1MWJjNDQwYmU2OGFhNGQ4ZjRkODIxYzQwOTA2Nzc=
|
data/lib/mitmdump.rb
CHANGED
@@ -101,10 +101,8 @@ class Mitmdump
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def stop
|
104
|
-
|
105
|
-
|
106
|
-
system("kill -0 #{@pid} &> /dev/null") and (system("kill #{@pid} 2> /dev/null") or
|
107
|
-
raise "Could not stop proxy '#{@name}' (pid: #{@pid})") if @pid
|
104
|
+
pid = `ps --ppid #{@pid} -o pid h`
|
105
|
+
system("kill #{pid}")
|
108
106
|
end
|
109
107
|
|
110
108
|
def dumpfile
|
@@ -115,7 +113,7 @@ class Mitmdump
|
|
115
113
|
|
116
114
|
def port_available?
|
117
115
|
# `nc -z 127.0.0.1 #{@port} >& /dev/null`
|
118
|
-
system("nc -z 127.0.0.1 #{@port}
|
116
|
+
system("nc -z 127.0.0.1 #{@port}")
|
119
117
|
!$?.success?
|
120
118
|
end
|
121
119
|
|