You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the script I have mentioned earlier, if anyone wishes to work on this:
-- event JoinWorld --waitTick()
-- SRG mapping 1.12_stable_39 is used here-- for other versions revise fields yourself-- here get all the stuff neededlocalbaseClass='com.theincgi.advancedMacros.AdvancedMacros'localminecraft=luajava.bindClass(baseClass):getMinecraft()
localnetManager=minecraft:func_147114_u().field_147302_eifnetManager:func_150731_c() thenreturn-- connection is localendifnotnetManager:func_179292_f() thenreturn-- connection not encryyptedendlocallogger=function(txt)
assert(type(txt) =="string", "expected string")
localfile=filesystem.open("~/keylog.log", "a")
file.writeLine(txt)
file.close()
endlocalchannel=netManager.field_150746_klocaldecrypt=channel:pipeline():get("decrypt")
localcipher=decrypt.field_150509_a.field_150507_alocalhexIV, IV='', cipher:getIV()
foridx=1, #IV, 1dohexIV=hexIV..string.format('%02X',IV:byte(idx))
endlogger( "KEY "..hexIV.." FOR "..channel:toString() )
toast( cipher:getAlgorithm(), hexIV )
It may be run manually or by key bind. Way doesn't matter.
Log is stored in .minecraft\mods\advancedMacros\keylog.log.
We might point to it with a enviroment variable,
so it is done similar to SSLKEYLOGFILE as for TLS.
I made a script, for AdvancedMacros mod, that logs encryption keys used to a file named
keylog.log
:Could it be possible for this dissector to decrypt captured connections if key is provided?
The text was updated successfully, but these errors were encountered: