Jump to content

execute commands via twitter


jtcgreyfox
 Share

Recommended Posts

Ive come up with an interesting idea which I don't think has been done yet.

implementing Twitter4J (a twitter access API for java) i made an app which processes direct messages to a particular twitter account as commands on the command line.

I called mine Twitexec.

to set it up you need to make a receiver twitter account and bind it to your normal twitter account.

Then you run the program with 3 arguments (account, password, delayBetweenUpdatesInSeconds)

and it will poll the direct messages list for new messages, parsing them as commands.

(FYI you cant request more than 150 twitter updates within an hour. so keep the update time to more than about 30 seconds)

You can then send that new account direct messages (eg: d testAccount explorer)

and it will open a new explorer window on all computers running the program.

I thought it would be a nice idea for people who wish to run similar commands on a large number of computers.

also mostly just proof of concept to get twitter to do more than chat.

http://rapidshare.com/files/302167682/twitexec.rar.html

Ive included a .exe of the program for quick use, but dont forget to make a shortcut to it so you can add the 3 arguments.

Link to comment
Share on other sites

I believe Digininja http://hak5.org/forums/index.php?showuser=4472 did something similar with php a while back. I can see this getting abused as an alternative to irc botnets, but still a pretty cool concept. Do you have the source code with it as well?

Something to maybe add, is prefixes. Like how somepoeple start a tweet as a RT for re-tweets, have one prefix for commands, then another prefix that tweets the results, but so the bot knows which tweets are to be executed, and which are to be ignored. This way, you can sort of remotely contorl the device while getitng feedback on twitter, like the talking toilet sort of thing.

Check this out: http://djtechnocrat.blogspot.com/2009/11/t...ommand-and.html

Link to comment
Share on other sites

I believe Digininja http://hak5.org/forums/index.php?showuser=4472 did something similar with php a while back. I can see this getting abused as an alternative to irc botnets, but still a pretty cool concept. Do you have the source code with it as well?

Something to maybe add, is prefixes. Like how somepoeple start a tweet as a RT for re-tweets, have one prefix for commands, then another prefix that tweets the results, but so the bot knows which tweets are to be executed, and which are to be ignored. This way, you can sort of remotely contorl the device while getitng feedback on twitter, like the talking toilet sort of thing.

Check this out: http://djtechnocrat.blogspot.com/2009/11/t...ommand-and.html

well i uploaded the .jar file aswel, and if you open taht with winrar, you ca get at the source code.. its rediculously simple. And the jar has a lot of unused junk left over from Twitter4J. hmm sad to hear someone has already done something like this hahaha i thought i had something really unique. thanks for the links btw.

Link to comment
Share on other sites

well i uploaded the .jar file aswel, and if you open taht with winrar, you ca get at the source code.. its rediculously simple. And the jar has a lot of unused junk left over from Twitter4J. hmm sad to hear someone has already done something like this hahaha i thought i had something really unique. thanks for the links btw.

Hrmmm no, no you cant. Inside a .jar, is class files not source files. But none the less the concept is good, but has already been done here, and ive also seen a fair few other implementations of the concept. (props to Digininja as his was first i saw).

Link to comment
Share on other sites

Hrmmm no, no you cant. Inside a .jar, is class files not source files. But none the less the concept is good, but has already been done here, and ive also seen a fair few other implementations of the concept. (props to Digininja as his was first i saw).

oops sorry. ok well nevermind the source anyway, i coded it terribly lol

ill just pass the flag to dijininja and step aside :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...