Skip to content

Commit b11520f

Browse files
committed
add jboss decrypt plugin
1 parent 83053ca commit b11520f

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

lib/passwd.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module PasswdLib
1414
flashfxp lsrunase qizhi_php seeyon_a8 h3c_imc landray_ekp d3des_vnc
1515
finereport zfsoft grafana trswcm mobaxterm seeyon_analyze_icloud
1616
richmail signer h3c_cvm seeyon_nc finalshell interlib qiyuesuo
17-
sxd_sdc
17+
sxd_sdc jboss
1818
}
1919

2020
Passwd = Struct.new(:cipher, :algos) do
@@ -109,7 +109,7 @@ def find_hash_type(passwd)
109109
[:sha512, :whirlpool]
110110
end
111111
if cipher.size % 32 == 0
112-
types = Array(types) + [:uportal2800, :navicat12, :interlib]
112+
types = Array(types) + [:uportal2800, :navicat12, :interlib, :jboss]
113113
end
114114
types = Array(types) + [:foxmail, :foxmail6]
115115
if cipher.size > 2 and cipher[0,2].to_i(16) <= 50

plugins/jboss.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env ruby
2+
#
3+
# Plugin jboss database decrypt
4+
# Author L
5+
#
6+
7+
plugin 'jboss' do
8+
supported_algorithm :jboss
9+
10+
crack {
11+
plain = algo_decrypt 'bf-ecb', key: 'jaas is the way', key_len: 15, msg: passwd.hex2ascii
12+
plain if plain.printable?
13+
}
14+
end
15+

pwcrack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author L
55
#
66

7-
Version = '1.21.0'
7+
Version = '1.22.0'
88
Project = 'pwcrack-framework'
99

1010
ROOT = __dir__

0 commit comments

Comments
 (0)