pwn 0.5.134 → 0.5.136
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +3 -3
- data/lib/pwn/plugins/irc.rb +17 -9
- data/lib/pwn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ee45281ba2404409843a5305870cd35223a38eb349262c62fdeca8d5c6a54c2
|
4
|
+
data.tar.gz: b4942a1b315b213da29c5d6645f00809f7aef25257bdba1c265a0f6bb191d181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92724874d4a07779bd7a51b05ffd0d12dcc8d9521d4a471507646d4cbe438dc1d3919f38186f3e5493deeec7b55f028353aee3b8c2782d2921dc8cc19efdb85
|
7
|
+
data.tar.gz: 3ac5b4e6f7d492645bda680d2d36d4bc84f046d902327cda20d7fb02bb3230c332a8b9001337c0792eb04455f08b02363c79d79ae39f3869191ec43114f51390
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
|
|
37
37
|
$ ./install.sh
|
38
38
|
$ ./install.sh ruby-gem
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.5.
|
40
|
+
pwn[v0.5.136]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.3.1@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.5.
|
55
|
+
pwn[v0.5.136]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
If you're using a multi-user install of RVM do:
|
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.1@pwn
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
64
64
|
$ pwn
|
65
|
-
pwn[v0.5.
|
65
|
+
pwn[v0.5.136]:001 >>> PWN.help
|
66
66
|
```
|
67
67
|
|
68
68
|
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
|
data/lib/pwn/plugins/irc.rb
CHANGED
@@ -33,9 +33,20 @@ module PWN
|
|
33
33
|
)
|
34
34
|
|
35
35
|
send(irc_obj: irc_obj, message: "NICK #{nick}")
|
36
|
+
irc_obj.gets
|
37
|
+
irc_obj.flush
|
38
|
+
|
36
39
|
send(irc_obj: irc_obj, message: "USER #{nick} #{host} #{host} :#{real}")
|
40
|
+
irc_obj.gets
|
41
|
+
irc_obj.flush
|
42
|
+
|
37
43
|
send(irc_obj: irc_obj, message: "JOIN #{chan}")
|
44
|
+
irc_obj.gets
|
45
|
+
irc_obj.flush
|
46
|
+
|
38
47
|
send(irc_obj: irc_obj, message: "PRIVMSG #{chan} :#{nick} joined.")
|
48
|
+
irc_obj.gets
|
49
|
+
irc_obj.flush
|
39
50
|
|
40
51
|
irc_obj
|
41
52
|
rescue StandardError => e
|
@@ -45,15 +56,17 @@ module PWN
|
|
45
56
|
|
46
57
|
# Supported Method Parameters::
|
47
58
|
# PWN::Plugins::IRC.listen(
|
48
|
-
# irc_obj: 'required - irc_obj returned from #connect method'
|
59
|
+
# irc_obj: 'required - irc_obj returned from #connect method',
|
60
|
+
# verbose: 'optional - boolean to enable verbose output (defaults to false)'
|
49
61
|
# )
|
50
62
|
|
51
63
|
public_class_method def self.listen(opts = {})
|
52
64
|
irc_obj = opts[:irc_obj]
|
65
|
+
verbose = opts[:verbose] || false
|
53
66
|
|
54
67
|
loop do
|
55
68
|
message = irc_obj.gets
|
56
|
-
@@logger.info(message.to_s.chomp)
|
69
|
+
@@logger.info(message.to_s.chomp) if verbose
|
57
70
|
irc_obj.flush
|
58
71
|
next unless block_given?
|
59
72
|
|
@@ -69,17 +82,12 @@ module PWN
|
|
69
82
|
# PWN::Plugins::IRC.send(
|
70
83
|
# irc_obj: 'required - irc_obj returned from #connect method',
|
71
84
|
# message: 'required - message to send',
|
72
|
-
# response_timeout: 'optional - response timeout in seconds (defaults to 3)'
|
73
85
|
# )
|
74
86
|
public_class_method def self.send(opts = {})
|
75
87
|
irc_obj = opts[:irc_obj]
|
76
88
|
message = opts[:message].to_s.scrub
|
77
|
-
response_timeout = opts[:response_timeout] || 3
|
78
89
|
|
79
90
|
irc_obj.puts(message)
|
80
|
-
# Wait for a response from the server
|
81
|
-
# does_respond = irc_obj.wait_readable(response_timeout)
|
82
|
-
irc_obj.gets
|
83
91
|
irc_obj.flush
|
84
92
|
rescue StandardError => e
|
85
93
|
raise e
|
@@ -118,13 +126,13 @@ module PWN
|
|
118
126
|
)
|
119
127
|
|
120
128
|
#{self}.listen(
|
121
|
-
irc_obj: 'required - irc_obj returned from #connect method'
|
129
|
+
irc_obj: 'required - irc_obj returned from #connect method',
|
130
|
+
verbose: 'optional - boolean to enable verbose output (defaults to false)'
|
122
131
|
)
|
123
132
|
|
124
133
|
#{self}.send(
|
125
134
|
irc_obj: 'required - irc_obj returned from #connect method',
|
126
135
|
message: 'required - message to send',
|
127
|
-
response_timeout: 'optional - response timeout in seconds (defaults to 3)'
|
128
136
|
)
|
129
137
|
|
130
138
|
irc_obj = #{self}.disconnect(
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.136
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -1080,14 +1080,14 @@ dependencies:
|
|
1080
1080
|
requirements:
|
1081
1081
|
- - '='
|
1082
1082
|
- !ruby/object:Gem::Version
|
1083
|
-
version: 2.0.
|
1083
|
+
version: 2.0.2
|
1084
1084
|
type: :runtime
|
1085
1085
|
prerelease: false
|
1086
1086
|
version_requirements: !ruby/object:Gem::Requirement
|
1087
1087
|
requirements:
|
1088
1088
|
- - '='
|
1089
1089
|
- !ruby/object:Gem::Version
|
1090
|
-
version: 2.0.
|
1090
|
+
version: 2.0.2
|
1091
1091
|
- !ruby/object:Gem::Dependency
|
1092
1092
|
name: thin
|
1093
1093
|
requirement: !ruby/object:Gem::Requirement
|