EvilZone

Programming and Scripting => Scripting Languages => : Live Wire February 01, 2012, 11:09:56 PM

: AutoIt help
: Live Wire February 01, 2012, 11:09:56 PM
So I've been working with Autoit for about an hour now, and its really easy to use. Fr those who don't know, its like the bastard child of C and java. But is there any way to just write to a file? The things I find online are either for writing to a .log file, or overwriting a file. I just need a command that adds a new line of text to a .txt file. Any thoughts? ( besides telling me to google it?)
: Re: AutoIt help
: xzid February 02, 2012, 01:35:18 AM
I have never used this lang, but from quick google can find:

FileOpen (http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm)
FileWrite (http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm)
FileClose (http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm)

I figure that would probably work. FileOpen would be mode=1(append).

I also don't see any resemblence to c or java.
: Re: AutoIt help
: Live Wire February 02, 2012, 08:10:55 AM
What I meant was that it is more like an object oriented C. And I was looking more for something that would just put the text into the file, like the echo something > something.txt in bash, for quick word list generation or something like that.
: Re: AutoIt help
: xzid February 02, 2012, 08:54:09 AM
looks more like VB to me.

can't one line everything bro, and even if you could doesn't mean it's the best way to do it. take a lesson from C or java, do it yourself. open/write/close is in most languages, just use it.
: Re: AutoIt help
: Live Wire February 02, 2012, 09:24:41 AM
Think I'm just going to write what I want in bash. But these commands have given me a new idea. Trojan for edit host files maybe. Send it to the dumb bitch on the friends list, and redirect her fb to pornhub. Lol
: Re: AutoIt help
: Kulverstukas February 02, 2012, 11:44:29 AM
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D
: Re: AutoIt help
: Live Wire February 02, 2012, 12:34:40 PM
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D

I could, but it's more fun to send exe, have it return a fake error, then redirect all Facebook to porn. And I've never had a problem with hosts file. We're talking about people who don't deserve more than 5 lines of code to fuck with ;)