GithubHelp home page GithubHelp logo

simplexss's Introduction

Simple XSS License Twitter

Simple index.php template to perform XSS attack.

Features

  • Record each URL args
  • Record client IP
  • Instant redirection (static or dynamic)

Prerequisites

  • Web server (apache2, nginx, ...)
  • PHP

Installing

In this guide I'm using apache2 on Debian 9. Obviously, you can use every web server and distro you want.

1. Install apache2 and php

apt install apache2 php

2. Get the sources

git clone https://github.com/bambish/SimpleXSS

3. Move index.php in the web server root dir

mv SimpleXSS/index.php /var/www/html

4. Set the access right to write dump files

chown root:www-data /var/www/html
chmod g+w /var/www/html

Usage

  • Basic usage: cookies=12345&arg=67890
http://127.0.0.1/index.php?cookies=12345&arg=67890

You can use every arbitrary args name

http://127.0.0.1/index.php?cookies=12345&arbitraryarg=67890&redirect=http://github.com/

You can change or disable the default redirection by editing or comment $staticredirection var in index.php You can force the static redirection if you set $allowgetredirection to false in index.php

  • Write in specific dump file: dumpfile=arbitraryfile.txt
http://127.0.0.1/index.php?cookies=12345&arbitraryarg=67890&dumpfile=arbitraryfile.txt

Be shure your web server have the right access to create and edit files at the root dir The default dump file is dumpfile.txt

Deploy with Docker

docker run -dit --name XSS -v /path/to/host/web/root/dir/:/var/www/html/ --publish 80:80 fauria/lamp

Adapt the root dir path if you don't use apache2 and give write access to your docker container

Warning

This XSS template was created to perform pentest or others legal stuffs (like bug bounty). Using this XSS template against web site without authorization is forbidden.

I'm not responsible of your usage of this XSS template. At your own risk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.