hello all ...
im new at autoit .. i write this code in vb.net to run my .exe from base64 after i convert it :
im trying to write the same code with autoit but without success ... any help please
i found this code for autoit but it uses vbscript i need it in pure autoit !!
the code run's simple Msgbox ... any help to the same think in pure autoit for converted .exe ( base64 )
im new at autoit .. i write this code in vb.net to run my .exe from base64 after i convert it :
Code
Imports System.Reflection
Module Module1
Sub main()
Dim li As String = "base64 string"
Dim lena() As Byte = Convert.FromBase64String(li)
Dim dddddddddddddddddddd As Assembly = Assembly.Load(lena)
dddddddddddddddddddd.EntryPoint.Invoke(Nothing, Nothing)
End Sub
End Moduleim trying to write the same code with autoit but without success ... any help please
i found this code for autoit but it uses vbscript i need it in pure autoit !!
Code
Local $lol = ObjCreate("ScriptControl")
$lol.Language = "VBScript"
$decode = _Base64Decode("dGV4dD0gbXNnYm94ICgiSGVsbG8gV29ybGQhIiwgMys2NCwgIk1zZ0JveCBFeGFtcGxlIikNCg==")
$lol.Addcode($decode)
Func _Base64Decode($string)
Local $com = ObjCreate("Msxml2.DOMDocument")
Local $createElement = $com.createElement("b64")
$createElement.dataType = "bin.base64"
$createElement.Text = $string
Local $sRet = BinaryToString($createElement.nodeTypedValue, 1)
Return $sRet
EndFunc ;==>_Base64Decode
