Skip to content

Commit

Permalink
add jboss decrypt plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
L-codes committed Dec 16, 2023
1 parent 83053ca commit b11520f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/passwd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module PasswdLib
flashfxp lsrunase qizhi_php seeyon_a8 h3c_imc landray_ekp d3des_vnc
finereport zfsoft grafana trswcm mobaxterm seeyon_analyze_icloud
richmail signer h3c_cvm seeyon_nc finalshell interlib qiyuesuo
sxd_sdc
sxd_sdc jboss
}

Passwd = Struct.new(:cipher, :algos) do
Expand Down Expand Up @@ -109,7 +109,7 @@ def find_hash_type(passwd)
[:sha512, :whirlpool]
end
if cipher.size % 32 == 0
types = Array(types) + [:uportal2800, :navicat12, :interlib]
types = Array(types) + [:uportal2800, :navicat12, :interlib, :jboss]
end
types = Array(types) + [:foxmail, :foxmail6]
if cipher.size > 2 and cipher[0,2].to_i(16) <= 50
Expand Down
15 changes: 15 additions & 0 deletions plugins/jboss.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
#
# Plugin jboss database decrypt
# Author L
#

plugin 'jboss' do
supported_algorithm :jboss

crack {
plain = algo_decrypt 'bf-ecb', key: 'jaas is the way', key_len: 15, msg: passwd.hex2ascii
plain if plain.printable?
}
end

2 changes: 1 addition & 1 deletion pwcrack
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Author L
#

Version = '1.21.0'
Version = '1.22.0'
Project = 'pwcrack-framework'

ROOT = __dir__
Expand Down

0 comments on commit b11520f

Please sign in to comment.