Sign in to follow this  
Followers 0
WhiteLion

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

6 posts in this topic

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 !

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

hmmm, no one can help ?

Share this post


Link to post
Share on other sites

Indeed the topic does sound fishy, but I think this could have legitimate uses as well.

I do a little assembly coding and would like to use some of my functions in AutoIt scripts.

Share this post


Link to post
Share on other sites

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  ÌÍÝ[

Share this post


Link to post
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
Sign in to follow this  
Followers 0