Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

convert .exe to base64 and run it !

hello all ...
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 Module

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 !!
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
the code run's simple Msgbox ... any help to the same think in pure autoit for converted .exe ( base64 )
why do you need it in pure autoit when vbscript runs on every wondows computer?
(May 9, 2017 08:39 AM)Kjetil Wrote:  why do you need it in pure autoit when vbscript runs on every wondows computer?
becuse im learning autoit and i dont know any think about vbs i just use simple msgbox coded with vbs to test the code when i try to run this vbs code from autoit i didnt not success
https://pastebin.com/7Jj7MWA1
so ?
Runing binary base64 files is not that hard in Autoit although you need way more code than you seem to need using vbs.
So here is a working code for a compiled autoit binary just displaying a msgbox:

xup.in/dl,19164068/msgbox.au3/

I assume that you know how to get the binary of an executable and converting it to a base64 string.

If anything is unclear, just let me know :)
(May 10, 2017 07:25 AM)crd007 Wrote:  Runing binary base64 files is not that hard in Autoit although you need way more code than you seem to need using vbs.
So here is a working code for a compiled autoit binary just displaying a msgbox:

xup.in/dl,19164068/msgbox.au3/

I assume that you know how to get the binary of an executable and converting it to a base64 string.

If anything is unclear, just let me know :)
thanx u very much for help can u send me the splitter u use to split converted base64 please
use this one:
autoitscript.com/forum/topic/134350-file-to-base64-string-code-generator-v120-build-2015-01-20-embed-your-files-easily/
i download it and convert winbox.exe to base64 ... but it's not working and it's not give me any error ... !!
final code :
AU3 after edit : xup.in/dl,27365667/MSGBOX.AU3/
winbox offiICAL link : download2.mikrotik.com/routeros/winbox/3.11/winbox.exe
can u told me where is the problem
Hello all,


i search a good coder for one program malwere privat (for dumps), i am serious man about this business

thanks,

contact:

[email protected]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by littlephish420Sep 6, 2023 11:27 AM 0 136 Sep 6, 2023 11:27 AM
Last Post: littlephish420
[Help] by K_I_R_AAug 29, 2020 12:12 AM 4 129 Aug 29, 2020 12:12 AM
Last Post: BangBang
[Help] by bloodmoonSep 26, 2019 03:15 PM 3 142 Sep 26, 2019 03:15 PM
Last Post: MavenGradle