pwn 0.5.267 → 0.5.268

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: 3b228e619ce199a20f5ad5ae20ebcfa6d1d938f55831159f388be2162fd868f2
4
- data.tar.gz: 3dd5fcd6eb4f01b1c9793acc20cd9aa4496302f99b31d7309e88419df8f77cc8
3
+ metadata.gz: 557a11a6946ab3c181a8aebc93456c923c7b151aa1be339cd2363d5695edb0ad
4
+ data.tar.gz: 2d3069cd6a24a8db3f95b0b4c00b18933e1cb44d14eb2aa3959be8d44220421c
5
5
  SHA512:
6
- metadata.gz: '09a0321af0e95b509f25ad4612a4b66942b0f8cdadc87e942cfe64de9666f0773e153172a7ba84b7ad40385e03bfeba2fc56d9927a624f42d0122d2a1a2b3d22'
7
- data.tar.gz: 753eaaf5679654d51b0a867b693ca206d669f6fd34b1c3065a0e71ee33675d79c8d7bb078aeeb8c57e20c463adb95cb34afc9430ab00df47d0aeaa4da9ba9036
6
+ metadata.gz: 2aedce3f1e24b45a250c7e4adb8730bee4e0f68e5a1a3edf19081afb351b7607588560586ac8d2b85d53a037a4970e1ac4af480082de8153999352b800c03cd8
7
+ data.tar.gz: 4dbc95e142d81fff530ba6be3e0d9b9fedde3f6be9fcd57c0c99b3465b5306012838fec7706cfbce96306a5f03a070be81cb2cc6b60b769f1d63019085a91d71
data/Gemfile CHANGED
@@ -78,7 +78,7 @@ gem 'rex', '2.0.13'
78
78
  gem 'rmagick', '6.1.1'
79
79
  gem 'rqrcode', '3.1.0'
80
80
  gem 'rspec', '3.13.0'
81
- gem 'rtesseract', '3.1.3'
81
+ gem 'rtesseract', '3.1.4'
82
82
  gem 'rubocop', '1.75.4'
83
83
  gem 'rubocop-rake', '0.7.1'
84
84
  gem 'rubocop-rspec', '3.6.0'
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.267]:001 >>> PWN.help
40
+ pwn[v0.5.268]: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.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.267]:001 >>> PWN.help
55
+ pwn[v0.5.268]: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.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.267]:001 >>> PWN.help
65
+ pwn[v0.5.268]: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/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.267'
4
+ VERSION = '0.5.268'
5
5
  end
@@ -2,6 +2,8 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  alias_file = '/etc/profile.d/aliases.sh'
5
+ r2_prompt = "Transform the output of pdga in r2. The output is a two column disasm and decompilation pipe-delimited output using the Ghidra decompiler). Your job is to respond ONLY with actual code (NO explanations, comments or markdown), Change 'goto' into if/else/for/while, Simplify as much as possible, use better variable names, take function arguments and strings from comments like 'string:', Reduce lines of code and fit everything in a single function, removing all dead code. Most importantly, determine if this code is exploitable."
6
+
5
7
  system("sudo touch #{alias_file}")
6
8
  system("sudo chmod 777 #{alias_file}")
7
9
  File.open(alias_file, 'w') do |f|
@@ -12,7 +14,7 @@ File.open(alias_file, 'w') do |f|
12
14
  f.puts "alias ls='ls --color=auto'"
13
15
  f.puts "alias phantomjs='export QT_QPA_PLATFORM=offscreen; phantomjs'"
14
16
  f.puts "alias prep='ps -ef | grep'"
15
- f.puts "alias r2='setarch $(uname -m) -R /usr/local/bin/r2 -c \"v r2-pwn-layout\" -c \"decai -e model=0dayInc:latest\" -c \"decai -e cmds=pdc\" -c \"decai -e prompt=Transform this pseudocode and respond ONLY with plain code (NO explanations, comments or markdown), Change \"goto\" into if/else/for/while, Simplify as much as possible, use better variable names, take function arguments and strings from comments like \"string:\", Reduce lines of code and fit everything in a single function, removing all dead code. Most importantly, determine if this code is exploitable.\"'"
17
+ f.puts "alias r2='setarch $(uname -m) -R /usr/local/bin/r2 -c \"v r2-pwn-layout\" -c \"decai -e model=Radare2:latest\" -c \"decai -e cmds=pdga\" -c \"decai -e prompt=#{prompt}\"'"
16
18
  f.puts "alias sup='sudo -i'"
17
19
  f.puts "alias vi='vim -i NONE -b'"
18
20
  f.puts "alias vim='vim -i NONE -b'"
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.267
4
+ version: 0.5.268
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -911,14 +911,14 @@ dependencies:
911
911
  requirements:
912
912
  - - '='
913
913
  - !ruby/object:Gem::Version
914
- version: 3.1.3
914
+ version: 3.1.4
915
915
  type: :runtime
916
916
  prerelease: false
917
917
  version_requirements: !ruby/object:Gem::Requirement
918
918
  requirements:
919
919
  - - '='
920
920
  - !ruby/object:Gem::Version
921
- version: 3.1.3
921
+ version: 3.1.4
922
922
  - !ruby/object:Gem::Dependency
923
923
  name: rubocop
924
924
  requirement: !ruby/object:Gem::Requirement