pwn 0.5.280 → 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: 31550d7a83b0e231bbaf07db506cec69ab8a99eae2f281439c44364fbeadbf13
4
- data.tar.gz: bb4251b5884ad474b738c6b56a4edb1b5fd225b9697ef95ea025a7fcac4934f9
3
+ metadata.gz: ba982a7ef65899a3890968ee2de122438de8a5f00603ce3ee459363817215a80
4
+ data.tar.gz: 9661c49cdc6b7b2da9d2829ee5a106664f38f571ca5bac7f3ef544c281cbcacb
5
5
  SHA512:
6
- metadata.gz: 5ea2a4ba93a123769e11414c21a98179614e02228db26046b4d07ae42defa2402ad8796188756c6006e3781e7f512e28491d90a0bbd7c63cce32560447f85057
7
- data.tar.gz: 22577b3e2a7db491bde47101d1bd663f0fd8316fe39762e01e79cc6b3521ae47a45c86b57d29f1e6c44ba251a70f2fe262be5c1896fea527813a7445da7d8f7a
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.280]: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.280]: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.280]: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:
@@ -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
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.280'
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.280
4
+ version: 0.5.281
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.