GithubHelp home page GithubHelp logo

roubarbe / crossdomainplayground Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 591 KB

web service with different scripts to execute, could be used in iFrames, in redirects, etc.

License: MIT License

HTML 22.93% CSS 2.76% JavaScript 74.31%

crossdomainplayground's Introduction

crossDomainPlayGround

WebPage with different scripts to execute, could be used in iFrames, in redirects, etc.

Different exploits

/exploits/alert/[message]

This splurts an empty page with a script tag, set to show an alert, with the specific message in the url.

/exploits/image/[url]

This splurts the provided image from another domain, make sure the URL is "encoded". You can use a service like: https://www.urlencoder.org/

/exploits/dataGather/[domain]

This will try to gather as many information as possible from the original host/frame/window that rendered this page in an iFrame. Domain must be specified to allow CORS

/exploits/newWindow

This opens an empty new window - Not used for anything else for now

/exploits/redirect/[url]

Opens a new page which then gets redirected to another specified URL (please encore the string)

QOL object htmlBuildingBlocks

This helps in quickly building small webpages with actions such as an alert window, console.log or specifying a new domain (and more). For exemple, you add htmlBuildingBlocks.scriptOpen to add to a general page string. It's either that or making a gigantic string mixing HTML and Javascript. You can absolutely do that if you wish, but oof.

scriptOpen()

returns: "<script type='text/javascript'>"

scriptClose()

returns: "</script>"

alertBox([msg])

returns: "alert('[msg]');"

domainChange([domain])

returns: "document.domain='[domain]';"

consoleLog([what])

returns: "console.log([what]);"

imgTag([imgUrl])

returns: "<img src='[imgUrl]'>"

newWindow()

returns: "window.open();"

redirectWindow([newUrl])

returns: "document.location.href = '[newUrl]';"

Where can I find the app?

App is situated here: https://cdpg.herokuapp.com

Have fun !

crossdomainplayground's People

Contributors

roubarbe avatar

Watchers

 avatar

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.