Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Obtain the session windows username with PHP and other problem

Hello,

I had test my cookie stealer, I obtain : IP, Port, hostname (with ISP name), UserAgent but I want to got the session windows name, I tell about this example :
[img]http://www.memoclic.com/medias/var/2009-15/ishot-0904101748301.jpg[/img]

I found 3 php script :

Code
 $username=shell_exec("echo %username%" );    echo ("username : $username" );?>

Source :
https://openclassrooms.com/forum/sujet/p...ogon-57595

Or these :


If by current windows user you mean the user running the script then that is set in an environment variable which you can get using:


Code
<?php echo getenv("username"); ?>If you want to get the home directory of the user running the script you should use<?php echo getenv("HOMEDRIVE") . getenv("HOMEPATH"); ?>


This should output either C:\Users\Fred or C:\Documents and Settings\Fred depending on if you are using windows Vista/7 or windows XP.

To see all of the environment variables you can do:

Code
<?php global $_ENV; var_dump($_ENV); ?>


http://stackoverflow.com/questions/12754...-using-php

Which one is right ?

Questions : on a cookie, I can see a username ? (Like his Facebook)

I can use 2 scripts or more in the same time ? I want use 4 script

I host on altervista and hostinger.fr


Possibly Related Threads...
Thread / Author Replies Views Last Post
by TrinityOct 29, 2019 07:30 AM 0 181 Oct 29, 2019 07:30 AM
Last Post: Trinity
by Itsfr0styOct 15, 2019 05:43 AM 3 128 Oct 15, 2019 05:43 AM
Last Post: H4x10r
by Rex DeusFeb 21, 2014 07:30 AM 5 104 Feb 21, 2014 07:30 AM
Last Post: ratalaser