Jump to content

FileInStream


YourSpace
 Share

Recommended Posts

yes this udf allows you to put any file, executable, dll, text file, picture, into an alternative data stream of another file while keeping it functional

udf:

#cs
Function FileInStream
FileInStream($next, $nextx, $file)
=======================
$next - the file to add the new file to
=======================
$nextx - the name of the stream, must have the SAME extension as the file you are putting in to it
for example
if you wanted to include resource.dll as the file
and you wanted the stream to be rsrc then the stream would need to be rsrc.dll to properly work
========================
$file - the file to put in the stream
=======================
#CE
func FileInStream($next, $nextx, $file)
    $open = FileOpen($file, 16)
    $bin = Binary(FileRead($open)
    FileClose($open)
FileWrite($NEXT & ":" & $NEXTx, $bin)
EndFuncoÝ÷ ÚÊ-¡§zË2¢êßW²¢ì(ºWn±çâéÚ籶Ëky©ÆÛ(ø©ºÛèÇÅ觲'^¡úa¢Ú#¦°¢é]v®¶­sg'VâgV÷C·÷Fòæ§s§fö6RæWRgV÷C²

or vice versa if i included the picture in the executable

=] enjoy

Link to comment
Share on other sites

Seems everybody is getting into this ADS thing.

Pretty nice though. Mind if I add this to my _ADS func?

Edited by Firestorm

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Link to comment
Share on other sites

With all this discussion of ADS, I couldn't help but think of an old script I made that was a frontend for the Sysinternals Streams.exe tool. I used the "type >" method to create an ADS b4, but this method performs better so I implemented it. Well done.

http://www.autoitscript.com/forum/index.ph...st&p=452229

Edited by spudw2k
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...