#BE_A_HACKER_WITH_ZEAL
Lesson#82
.
.
/ #XSS | #XSS_INTRODUCTION_PART4 | #DOM .\
.
.
We Are @[384835275231112:0] (' Share Technically Organized Resources ')
.
Hello Friends, today we Going to cover up on DOM Based xss.
.
So What is DOM ?
DOM full form is 'Document object model' that allows browser Javascript to dynamically access and modify the content, structure, and style of a webpage as the input.
.
Here is an example of javascript which can accept input through url and excute in the page.
**
<html>
<head>
</head>
<body>
<script>
var pos=document.URL.indexOf("webinput=")+9;
//finds the position value
var userInput=document.URL.substring(pos,document.URL.length);
//copy the value into userInput variable
document.write(unescape(userInput)); //writes content to the webpage
</script>
</body>
</html>
**
The javascript code gets value from the url parameter “webinput” and writes the value in our webpage.
.
Example url: Prohackers.info/hacking?webinput=hello
.
If you visit it then in page you can see output as hello, Now what if we add phishing link that url ? Example
.
Prohackers.info/hacking?webinput=<a href="urwebsitelink.xyz">click here</a>
.
And send that link to victim. So if he opens the link, it look like the real page, and click on that link and redirect to ur phishing page etc.
.
Hope guys understand it.
.WARNING:- THIS POSTS IS MADE FOR EDUCATIONAL PURPOSE. I AM NOT RESPONSIBLE FOR YOUR ACTIVITIES
.
Do you want to read my old lesson's then just search sharetor.xyz in facebook and like my fan Page and read all lessons. Or just </a> @@[0:[384835275231112:1: CLICK HERE ]] </a> @[384835275231112:0] </br> (' Like Our Fan page it will be usefull to you ')
.
VISIT OUR WEBSITE PROHACKERS.INFO
------------------------------------------------------------------------------------------
We Are Unique
We Are Myriad
We Never Regret
We Follow Ashvamedha
We Are Prohackers
We Are Here
- Prohackers.info
Lesson#82
.
.
/ #XSS | #XSS_INTRODUCTION_PART4 | #DOM .\
.
.
We Are @[384835275231112:0] (' Share Technically Organized Resources ')
.
Hello Friends, today we Going to cover up on DOM Based xss.
.
So What is DOM ?
DOM full form is 'Document object model' that allows browser Javascript to dynamically access and modify the content, structure, and style of a webpage as the input.
.
Here is an example of javascript which can accept input through url and excute in the page.
**
<html>
<head>
</head>
<body>
<script>
var pos=document.URL.indexOf("webinput=")+9;
//finds the position value
var userInput=document.URL.substring(pos,document.URL.length);
//copy the value into userInput variable
document.write(unescape(userInput)); //writes content to the webpage
</script>
</body>
</html>
**
The javascript code gets value from the url parameter “webinput” and writes the value in our webpage.
.
Example url: Prohackers.info/hacking?webinput=hello
.
If you visit it then in page you can see output as hello, Now what if we add phishing link that url ? Example
.
Prohackers.info/hacking?webinput=<a href="urwebsitelink.xyz">click here</a>
.
And send that link to victim. So if he opens the link, it look like the real page, and click on that link and redirect to ur phishing page etc.
.
Hope guys understand it.
.WARNING:- THIS POSTS IS MADE FOR EDUCATIONAL PURPOSE. I AM NOT RESPONSIBLE FOR YOUR ACTIVITIES
.
Do you want to read my old lesson's then just search sharetor.xyz in facebook and like my fan Page and read all lessons. Or just </a> @@[0:[384835275231112:1: CLICK HERE ]] </a> @[384835275231112:0] </br> (' Like Our Fan page it will be usefull to you ')
.
VISIT OUR WEBSITE PROHACKERS.INFO
------------------------------------------------------------------------------------------
We Are Unique
We Are Myriad
We Never Regret
We Follow Ashvamedha
We Are Prohackers
We Are Here
- Prohackers.info