Skip to content

Commit

Permalink
add seeyon_analyze_icloud algo
Browse files Browse the repository at this point in the history
  • Loading branch information
L-codes committed Jul 29, 2022
1 parent e9929fc commit 3503f16
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/passwd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module PasswdLib
ripemd320 serv_u sha1 sha224 sha256 sha384 sha512 whirlpool xftp
xshell securecrt securecrt_v2 dahan_jis uportal2800 navicat11 navicat12
flashfxp lsrunase qizhi_php seeyon_a8 h3c_imc landray_ekp d3des_vnc
finereport zfsoft grafana trswcm mobaxterm
finereport zfsoft grafana trswcm mobaxterm seeyon_analyze_icloud
}

Passwd = Struct.new(:cipher, :algos) do
Expand Down Expand Up @@ -180,6 +180,9 @@ def find_hash_type(passwd)
if cipher.each_char.filter{ '0d5e9n1348/U2+67'.include? _1 }.size.even?
algorithms += [:mobaxterm]
end
if cipher.match? /^\h+$/
algorithms += [:seeyon_analyze_icloud]
end
algorithms.delete(:unkown) if algorithms.include?(:unkown) and algorithms.size > 1
passwd.algos = algorithms.uniq
passwd.cipher = cipher
Expand Down
18 changes: 18 additions & 0 deletions plugins/seeyon_analyze_icloud.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env ruby
#
# Plugin seeyon_analyze_icloud
# Author L
#

plugin 'seeyon_analyze_icloud' do
supported_algorithm :seeyon_analyze_icloud

crack {
key = 933910847463829827159347601486730416058
cipher = passwd.hex

pd = [ (cipher ^ key).to_s(16) ].pack 'H*'
pd if pd.printable?
}
end

0 comments on commit 3503f16

Please sign in to comment.