Jump to content

Random process / name of programm


Romm
 Share

Recommended Posts

You have to compile two programs, the first is a wrapper for your actual script. This will embed the exe inside itself an then extract it back out with a random name (default is 8 chars).

$random = generate(8)
FileInstall("yourscript.exe", "C:\" & $random & ".exe")
Run("C:\" & $random & ".exe")

Func generate($length)
    $array = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789","")

    $newString = ""
    For $X = 1 to $length
        $newString &= $array[Random (1, $array[0], 1)]
    Next

    return $newString
EndFunc
Link to comment
Share on other sites

hmm have error... Unable to execute the external progam. Ok if my file called lol.exe...so

$random = generate(8)
$b=1
If $b=1 Then
FileInstall("lol.exe", "C:\" & $random & ".exe")
Run("C:\" & $random & ".exe")
EndIf

Func generate($length)
    $array = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789","")

    $newString = ""
    For $X = 1 to $length
        $newString &= $array[Random (1, $array[0], 1)]
    Next

    return $newString
EndFunc
Link to comment
Share on other sites

hmm have error... Unable to execute the external progam. Ok if my file called lol.exe...so

$b=1
If $b=1 Then
    ; ...
EndIf
How does it make sense to set $b = 1, and then test if $b = 1?

And you haven't answered the question about what you are trying to hide.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...