Sign in to follow this  
Followers 0
YourSpace

FileInStream

5 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

yes anyone is free to add our udf just dont forget to mention us.

Edited by YourSpace

Share this post


Link to post
Share on other sites

There are like 3 different topics about ADS now.

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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