Skip to content

Instantly share code, notes, and snippets.

@Mosharush
Last active November 30, 2018 23:05
Show Gist options
  • Save Mosharush/0819d75446d1065b6b51c941479d5e9b to your computer and use it in GitHub Desktop.
Save Mosharush/0819d75446d1065b6b51c941479d5e9b to your computer and use it in GitHub Desktop.
Quick way to find out admin panel address
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 :(');
}
});
// 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