<commit_before>Webnuke is a console based python application useful when pentesting a web application, especially AngularJS applications.

To run:

python console.py

![webnuke main gui](http://bugbound.co.uk/sites/default/files/webnuke%20mainscreen.png?19)

Detect technologies in use not by parsing files or applying regex to file names but from Javascript variables and html elements on the page.
![quickdetect - Wordpress and jQuery](http://bugbound.co.uk/sites/default/files/webnuke-quickdetect.png)

![quickdetect - Drupal CMS](http://bugbound.co.uk/sites/default/files/webnuke-drupal.png)


<commit_msg>added jsconsole menu option<commit_after>Webnuke is a console based python application useful when pentesting web based applications.

To run:

python console.py

![webnuke main gui](http://bugbound.co.uk/sites/default/files/webnuke%20mainscreen.png?19)

Detect technologies in use not by parsing files or applying regex to file names but from Javascript variables and html elements on the page.
![quickdetect - Wordpress and jQuery](http://bugbound.co.uk/sites/default/files/webnuke-quickdetect.png)

![quickdetect - Drupal CMS](http://bugbound.co.uk/sites/default/files/webnuke-drupal.png)



## JSCONSOLE

The jsconsole option allows you to execute javascript or run internal webnuke javascript.

### Demo:

var msg="hello world";
alert(msg);
@@@

### Internal commands
wn_help() - Shows WebNuke Help
wn_findMethodsOfThis() - print javascript methods
wn_getMethodsPlusCode() - print javascript methods and code
wn_getFunctions() - returns array of javascript functions
wn_listFunctions() - print javascript function names
wn_findStringsWithUrls() - Try and locate urls within Javascript strings
wn_showHiddenFormElements() - Show hidden form elements in the browser
wn_showPasswordFieldsAsText() - Show password fields as text in the browser
wn_showAllHTMLElements() - Set CSS visibility to visible on all HTML elements in the browser
wn_showAngularAppName() - Show AngularJS Main Application Name
wn_showAngularDeps() - Show AngularJS Main Dependencies
wn_showAngularMainClasses() - Show AngularJS Main Classes
wn_showAngularAllClasses() - Show AngularJS All Classes
wn_testNgResourceClasses() - Test ngResource Classes
wn_showAngularRoutes() - Show AngularJS URL Routes


{'fraction_non_alphanumeric': 0.07961504811898512, 'fraction_numerical': 0.003499562554680665, 'mean_word_length': 5.534285714285715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5542404', 'n_tokens_mistral': 679, 'n_tokens_neox': 632, 'n_words': 222}