Last active
November 30, 2018 23:05
-
-
Save Mosharush/0819d75446d1065b6b51c941479d5e9b to your computer and use it in GitHub Desktop.
Quick way to find out admin panel address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('/robots.txt').then(function(data){ | |
return data.text(); | |
}).then(function(text) { | |
const paths = [ | |
'?q=user', | |
'/wp-admin', | |
'/administrator', | |
'/cms', | |
'/admin', | |
]; | |
let found = paths.some(( path ) => { | |
if( text.indexOf(path) !== -1 ) { | |
location.href = path; | |
return true; | |
} | |
return false; | |
}); | |
if( ! found ) { | |
alert('I can find out the admin door :('); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For best usage, add to your browser this code as bookmark: | |
javascript:fetch('/robots.txt').then(function(data){return data.text();}).then(function(text) {const paths = ['?q=user','/wp-admin','/administrator','/cms','/admin',];let found = paths.some(( path ) => {if( text.indexOf(path) !== -1 ) {location.href = path;return true;}return false;});if( ! found ) {alert('I can find out the admin door :(');}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment