pwn 0.5.279 → 0.5.281

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1305b14cb06bf37af02be9bae67675548ee58b5027584e9075f40edc6fbdcdb
4
- data.tar.gz: f01c6b1e804c971930662e6aa6d8f7d9c5b8eb6c2a0bab4dcff9956d11e1a2cf
3
+ metadata.gz: ba982a7ef65899a3890968ee2de122438de8a5f00603ce3ee459363817215a80
4
+ data.tar.gz: 9661c49cdc6b7b2da9d2829ee5a106664f38f571ca5bac7f3ef544c281cbcacb
5
5
  SHA512:
6
- metadata.gz: d0bc62a5e5e0d50d49656c47c2070b57d9a1e5fcea44ae1666c73815729431d98820d895bd437f860f138028b3fa823bea7074af6dcdb887c2b1c863bd33a018
7
- data.tar.gz: 2ceb90153b66ca777cb6a452eda80a743f313a18497a21e21a607b8a7036156d18ae18e5b3d6b10c1dfc4003c6d988217a15328795ffa37b64d5e56e3ea67e08
6
+ metadata.gz: 6adefbe7e4c2893b8ca60127e1a0d12fcd03857db0833434bbcac974775fbfe74a9378cda50598010c521ec5a7b7c87c911ae85db3a44ed55411dbdeffb77a1a
7
+ data.tar.gz: 53f8ec360d2ea00381623a8e8c6b5b780eaa18533e6e42b26266b787d9ef3486392e87aa163a1e5ff1e54cfebb2ef44ae475c9e776ed1ac53f80e6dbf408d138
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.279]:001 >>> PWN.help
40
+ pwn[v0.5.281]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.279]:001 >>> PWN.help
55
+ pwn[v0.5.281]: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.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.279]:001 >>> PWN.help
65
+ pwn[v0.5.281]: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/bin/pwn_mail_agent CHANGED
@@ -29,9 +29,7 @@ if opts.empty?
29
29
  exit 1
30
30
  end
31
31
 
32
- private
33
-
34
- def initiate_action
32
+ private_methods def initiate_action
35
33
  puts @list_agent_opts
36
34
  if @list_agent_opts
37
35
  puts "The following is an example YAML file for #{@agent_type}:\n#{@example_msg_body_yaml}"
@@ -73,11 +73,12 @@ module PWN
73
73
 
74
74
  JSON.parse(response, symbolize_names: true)
75
75
  rescue RestClient::ExceptionWithResponse => e
76
- case e.message
77
- when '400 Bad Request', '404 Resource Not Found'
78
- "#{e.message}: #{e.response}"
79
- else
80
- raise e
76
+ if e.response
77
+ puts "HTTP BASE URL: #{base_api_uri}"
78
+ puts "HTTP PATH: #{rest_call}"
79
+ puts "HTTP RESPONSE CODE: #{e.response.code}"
80
+ puts "HTTP RESPONSE HEADERS: #{e.response.headers}"
81
+ puts "HTTP RESPONSE BODY:\n#{e.response.body}\n\n\n"
81
82
  end
82
83
  rescue StandardError => e
83
84
  raise e
@@ -27,9 +27,16 @@ module PWN
27
27
  "%<s1>07x0: %<s2>-40s %<s3>-16s\n",
28
28
  s1: index,
29
29
  s2: row.map { |pair| pair.map { |b| b.to_s(16).rjust(2, '0') }.join }.join(' '),
30
- s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.flatten.join
30
+ s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.join
31
31
  )
32
32
 
33
+ # fmt_row = format(
34
+ # "%<s1>07x0: %<s2>-40s %<s3>-16s\n",
35
+ # s1: index,
36
+ # s2: row.map { |pair| pair.map { |b| b.to_s(16).rjust(2, '0') }.join }.join(' '),
37
+ # s3: row.flat_map { |pair| pair.map { |b| (b >= 32 && b < 127 ? b.chr : '.') } }.flatten.join
38
+ # )
39
+
33
40
  io.write(fmt_row)
34
41
 
35
42
  if hashed
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.279'
4
+ VERSION = '0.5.281'
5
5
  end
@@ -1313,6 +1313,12 @@
1313
1313
  {"messages":[{"role":"user","content":"PWN::WWW::Upwork.login Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.login`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.login(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nusername: 'required - username',\npassword: 'optional - passwd (will prompt if blank)'\n\n)\n"}]}
1314
1314
  {"messages":[{"role":"user","content":"PWN::WWW::Upwork.logout Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.logout`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.logout(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
1315
1315
  {"messages":[{"role":"user","content":"PWN::WWW::Upwork.open Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.open`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.open(\n\nbrowser_type: 'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)',\nproxy: 'optional - scheme://proxy_host:port || tor'\n\n)\n"}]}
1316
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.authors Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.authors`: Author(s)\n\n0day Inc. <support@0dayinc.com>\n"}]}
1317
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.close Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.close`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.close(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
1318
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.help Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.help`: "}]}
1319
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.open Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.open`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.open(\n\nbrowser_type: 'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)',\nproxy: 'optional - scheme://proxy_host:port || tor'\n\n)\n"}]}
1320
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.search Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.search`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.search(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nq: 'required - search string'\n\n)\n"}]}
1321
+ {"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.timetravel Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.timetravel`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.timetravel(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nuri: 'required - URI (e.g. https://example.com)',\ndate: 'optional - date in YYYYMMDD format (Defaults to today)'\n\n)\n"}]}
1316
1322
  {"messages":[{"role":"user","content":"PWN::WWW::Youtube.authors Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.authors`: Author(s)\n\n0day Inc. <support@0dayinc.com>\n"}]}
1317
1323
  {"messages":[{"role":"user","content":"PWN::WWW::Youtube.close Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.close`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Youtube.close(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
1318
1324
  {"messages":[{"role":"user","content":"PWN::WWW::Youtube.help Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.help`: "}]}
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.279
4
+ version: 0.5.281
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.