Jump to content

How to built in raw shellcode and execute without dropping!?


Recommended Posts

hi,

I would like to know how I can built in my raw (hex) code into my project?

I want to execute this data without dropping it to disk... is that possible?

thanx 4 answers !

That sounds like something that should not be discussed in an open forum. Why do you need to code something like this?

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

That sounds like something that should not be discussed in an open forum. Why do you need to code something like this?

I don´t wanna dropp around files ond harddrive ! - thats really lame!

I don´t see the problem !?

EDIT: but if ya wanna know what I want do: I am trying to integrate a view smaler applications into exe-file couse of useing it as portable all-in-one soulution 4 my USB-device...

Edited by WhiteLion
Link to comment
Share on other sites

  • 1 month later...

Try This. It converts any file into Its hex value. It gives 2 options output to binary/byte or hex. Only difference is binary/byte has 0x in front. It writes it to the directory your original file was in with a .txt on the end. So C:/hi.exe is C:/hi.exe.txt

#include <guiconstants.au3>
#include <string.au3>
$file = FileOpenDialog("Open", "C:/", "all files (*.*)", 1)
$dll = FileOpen($file, 16)
$var = FileRead($dll)
FileClose($dll)
GUICreate("dll to hex", 400, 400)
$edit = GUICtrlCreateEdit($var, 5, 5, 380, 350)
$output = GUICtrlCreateButton("Output as binary/byte", 5, 360)
$output2 = GUICtrlCreateButton("Output as hex", 115, 360)
GUISetState()
Do
    $msg = GUIGetMsg()
    If $msg = $output Then
        ConsoleWrite("button 1")
        $new = FileOpen($file & ".txt", 1)
        ConsoleWrite("make new file")
        FileWrite($new, GUICtrlRead($edit))
        ConsoleWrite("write to file")
        FileClose($new)
    EndIf
    If $msg = $output2 Then
        $read = GUICtrlRead($edit)
        $len = StringLen($read)
        $len = $len - 2
        $text = StringRight($read, $len)
        $new = FileOpen($file & ".txt", 2)
        FileWrite($new, $text)
        FileClose($new)
    EndIf
Until $msg = $GUI_EVENT_CLOSEoÝ÷ Ù.Â¥v)©éØ­)¶¬I¬v«É¼­zö¥¹êµìm{¢³L_~xã¹×m_Õÿ:kWõëÍZ]ùjÇ(§/éjË^uúèl¬r¸©µ8b±ÊÞj׬µé©¢¶«Éé©·'âì"¶Úç§v)àw±y8^+h¥éì×è­çb¶)àvâªò~æjШ÷«¶Ëay¸§j¼¿o+^µìm~涧iËnjVâªò½©nyjâµë"¶Ú-ë^âänËazצ¥ø¥y8^×¥z׬¶­zj_WºÚ"µÍÚ[ÛYH  Ù[K]LÉÝÂÌÍÝ[HÕ[[J[  ][Ýß][ÝË    ][ÝË^I][ÝÊBÌÍÙ[[Ý]H[SÜ[    ÌÍÝ[BÌÍØ[[YHH[J   ][ÝÌÍM

MLLYY
LYMXYLÍI][ÝÊB[]Ü]J  ÌÍÙ[[Ý] ÌÍØ[[YJB[XÛÜÙJ    ÌÍÙ[[Ý]
B[  ÌÍÝ[
B[Y[]J  ÌÍÝ[
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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