Jump to content

How do I code a XSS script?


jamesxg1

Recommended Posts

Hiya!

 

I know XSS is un-secure but I was wondering how I would code a XSS code, I have tried to Google it but there is nothing, all I am finding is XSS preventation. I was wondering if someone knows a tutorial or maybe if someone can show me an example of how to make an XSS script.

 

Many thanks

 

James.

Link to comment
https://forums.phpfreaks.com/topic/199434-how-do-i-code-a-xss-script/
Share on other sites

Ah right I see, well I'm trying to make it so that I can provide my customers with a script on their own website without actually have to script, the script will be held on my server and I'm looking for a way for them to include it on their site.

 

Many thanks

 

James.

to clear things up, XSS is a way to inject malicious code (usually javascript, but not always) into a website/page.

 

XSS is usually achieved by way of improperly secured form data, where a loser, i mean hacker/cracker/whatever, does something as simple as:

 

<script>window.location="http://www.bad-site.com/";</script>

 

into a comment box on a site.  now, if the site does not handle (strip or convert entities) the incoming data from a form, that code will be executed each and every time a user reaches that page.  now, a simple redirect is harmless in respect that things can get a lot worse, ie. cookie manipulation, etc.

 

anyways, if you just want your users to access one file located on your server, just use include

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.