Jump to content

Create Email pass-through file


paullab
 Share

Recommended Posts

Converts any file (including exe's) into a text file that will pass through most e-mail filters

This is great when you need to send an autoit executable file via e-mail

To re-create the original file, simply rename the .txt file to a .bat and execute it.

tested to work happily with exes, zips, dll,7z etc

Code updated to handle long paths and filenames with spaces better

Original passthru.au3 downloasded 47 times.

This version is an updated much faster one.

Fast Version Downloaded 336 Times

Now includes a minor update to create the Text File in the same directory as the source and not in the Script directory

as well as some additional speed improvement by using the autoit file functions correctly as well as compile using 3.2.10.0

Passthru.au3

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

Converts any file (including exe's) into a text file that will pass through most e-mail filters

This is great when you need to send an autoit executable file via e-mail

To re-create the original file, simply rename the .txt file to a .bat and execute it.

tested to work happily with exes, zips, dll,7z etc

this is great. my work email blocks everything.. i will give it a test now

Link to comment
Share on other sites

Coool! .. i LOVE the idea :nuke: .. and it works fine with a GIF, but not a JPG :P

tested on 68k exe file.

it worked but took a long time to encode/decode on a 2.4ghz box

i would imagine someone on here can do this in pure autoit..

great idea though.

Link to comment
Share on other sites

  • 2 months later...

Now Updated to run loads and loads faster,

A File that previously took 2 minutes and 44 seconds now takes 9 seconds !!!

All that was done was really really obvious (there is no need to specify next the record when sequentially reading lines from a file!!)

Download updated version from Original post.

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

i would imagine someone on here can do this in pure autoit..

you can't write it in only autoit, you need the .bat file to change it back...

they can't change the file back with an exe, because you can't mail it to them in the first place...

and if they had Autoit installed you could just email the .au3 file...

------------------------------

i think this is a long and drawn out way to do this, i would prefer making a .bat file that said:

@echo off

ren FILENAME.exe FILENAME.txt

to change it, and send them the disguised exe file along with a .bat file that said:

@echo off

ren FILENAME.txt FILENAME.exe

del %0

and mail them both files with short instructions that said:

put both of the files in the same directory (don't change names) and run the .bat file, then run the newly created .exe file...

anyone who can't comprehend that probably isn't someone you would wish to send executable files to anyway...

good job tho : ) lol

Link to comment
Share on other sites

Yup the rename trick used to work, but the bl**dy filter we now use finds renamed exe files and even kills exe file inside zipfiles.

not to mention vbs, bas, com, reg, ini and loads more.

i have to send .bat files as .txt otherwise they are also stripped out.

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

you could use an encryption algorithm...or trick the mail server into not scanning, but i don't think im at a grounds to explain how to do so, i do believe explaining further will get me into some trouble so i plead the 5th on weather or not i have obtained such information, and to weather or not my name portays me with any accuracy... : )

Link to comment
Share on other sites

  • 2 months later...

This is primarily used to send the ftphelper application to sites with fairly tight restrictions on e-mail attachments etc. then can then easily fetch large file without needing to know ip adresses, usernames & passwords etc. It is/was not intended for devious use (as may have been implied in some responses). This is difficult anyway as the recipient needs to perform at least 4 positive actions to re-create the file sent to them

1. save the text file

2. rename to bat

3. execute the bat

4. execute/view/open the re-created file

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

If you just put passwords on the zip files, the server can't do anything about it unless it feels like brute forcing the information.

The issue is not the content of the attachment, it is the attachment itself and the fact that it gets blocked by the e-mail filter that is really doing the right thing. (ours, and most customers, block zips, 7z and most other archive formats along with the others expected.) This then causes all the problems associated with getting the file released. This util circumvents all the trauma by sending a plain text file that is then re-constructed.

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

The issue is not the content of the attachment, it is the attachment itself and the fact that it gets blocked by the e-mail filter that is really doing the right thing. (ours, and most customers, block zips, 7z and most other archive formats along with the others expected.) This then causes all the problems associated with getting the file released. This util circumvents all the trauma by sending a plain text file that is then re-constructed.

hmm.. why do you think your copmany is spending money for that "trauma" of a mail filter?

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Great script.. tested on many file sizes and types.. biggest file was a rer file 10 mb and it worked in a matter of seconds.. great work.. and all other files exe, gif.. worked

You only need two tools in life: WD40 and Duct Tape.If it moves and it shouldn't, use Duct Tape.If it should move but doesnt, use WD40.

Link to comment
Share on other sites

  • 4 months later...

Now includes a minor update to create the Text File in the same directory as the source and not in the Script directory.

Updated Source is in the original post.

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

if you made a .exe file into plain text send it and told the person to make a .exe again why wouldn't that work

This is in effect what the script is doing (and catering for all those not-text Characters) as well as getting rid of the binary signatures that are used to detect file-types, this bypassing the filters

can't rewrite its self?

No, Not directly, but you could creates a copy (fred.exe) then create your text file (in reality a batch file) end edit that to create the output filename you want. (check the attachment below)

got losted in the script

MakeChunks() ; select a a file and break it down into chunks (a little les that 40k per chunk)

Makeit() ; create encbin & decbin (these are the magic bits)

Top() ; create the header of the batch File this includes creating the decbin program that does the reconstruction

Body() ; create the body of the File (this is what takes most of the time) take each chunk, convert it to text and

append it to the end of either the header or previously converted chunck

tail() ; the tailend some batch file code to get rid of most of temporary files

tidy() ; a little tidying up.

IMPORTANT.

I use 'encbin.com' and 'decbin.com' to do the real work

Both of these are © Copyright 2002 Terry Newton

and have been released to the public domain.

Passthrough.exe.txt

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
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...