Commit Graph

64 Commits

Author SHA1 Message Date
Tib3rius db22d1aac5 Update autorecon.py
Added notes.txt back.
2021-08-28 08:43:11 -04:00
Tib3rius 5011fe294f Update autorecon.py
Added comments.
2021-08-28 08:29:02 -04:00
Tib3rius 10e40b2c53 Updates & Bug Fixes
Updated global option parsing to allow default None values by removing the "default=" setting.
Added a match_service() function to ServiceScan plugins to match combinations of protocol/port/name.
Fixed bug in status times.
Removed defaul from global.domain.
Added new WinRM detection plugin.
2021-08-27 15:16:26 -04:00
Tib3rius 35734efbd0 Update autorecon.py
Added new status update feature. Pressing 's' during a scan will print task details.
2021-08-27 10:18:44 -04:00
Tib3rius 7905036688 Update autorecon.py
Added forced service check. If no services are defined, AutoRecon will error out.
2021-08-27 09:31:33 -04:00
Tib3rius a37e1c98c7 Update autorecon.py
Added ability to force service scans.
2021-08-27 03:01:35 -04:00
Tib3rius cd3388cb67 Merge branch 'beta' of https://github.com/Tib3rius/AutoRecon into beta 2021-08-27 02:35:04 -04:00
Tib3rius ff8d8de2c8 Update autorecon.py
Fixed potential memory leak.
Fixed possible display bug.
2021-08-27 01:29:23 -04:00
Tib3rius 031afa6003 Bug Fix
Fixed a bug where AutoRecon wouldn't restore the terminal after running the help menu in Bash.
2021-08-26 20:14:06 -04:00
Tib3rius b3b81f5de9 Fixed add_list_option()
Previously, add_list_option() used argparse's "append" type. Now it uses nargs='+' to allow multiple options (space separated) that also override defaults rather than appending.
2021-08-26 17:10:17 -04:00
Tib3rius 226d6ea77d New functionality.
Added a stream readlines() function to read all lines into a list.
Added fformat() function, giving plugin authors more access to variables.
Fixed "Curl Robots" plugin (suggestion by Alh4zr3d) so it only saves the robots.txt file if it finds one.
2021-08-24 20:30:13 -04:00
Tib3rius cbf8d5ae5a Added ability to change verbosity by pressing up and down keys. 2021-08-23 23:21:14 -04:00
Tib3rius 766dd870e5 Update autorecon.py
Added filename reference to plugin registering errors.
2021-08-22 08:04:34 -04:00
Tib3rius 8ed8c74882 Bug fixes.
Fixed bug where commands were double formatted when being written to _commands.txt
Fixed bug where plugin warnings would print multiple times per plugin.
2021-08-19 23:18:43 -04:00
Tib3rius 4d9145d326 Update autorecon.py
Added --create-port-dirs option which will create port directories (e.g. tcp80, udp53) in the scans directory and put all relevant scans there.
Now most command line options can be set in the config.toml file as well.
2021-08-17 19:03:29 -04:00
Tib3rius 9b1de4c940 Update autorecon.py
Changed add_service() method to make it more standard.
2021-08-15 19:38:54 -04:00
Tib3rius 666fdbcec5 Update autorecon.py
Fixed bug where inspect.signature() returned different values depending on python version. Using inspect.getfullargspec() instead.
2021-08-15 16:33:55 -04:00
Tib3rius 40dcea93b7 Updated Manual Commands
Manual commands function manual() now requires two arguments to make it more advanced.
2021-08-14 19:41:10 -04:00
Tib3rius 5740efc86c Missed Services Collection
Added feature to collect services which AutoRecon "missed" (i.e. doesn't have plugins for) and report them at the end.
2021-08-13 18:53:59 -04:00
Tib3rius f07f4b6a3f Update autorecon.py
Removing missed service collection for now. Too many bugs.
2021-08-13 18:21:25 -04:00
Tib3rius 838137c6bc Update autorecon.py
Quick bug fix for previous update.
2021-08-13 18:06:09 -04:00
Tib3rius 7fa825c733 Update autorecon.py
Added feature to collect services which AutoRecon "missed" (i.e. doesn't have plugins for) and report them at the end.
2021-08-13 17:49:01 -04:00
Tib3rius 5e7b2b4c19 Update autorecon.py
Added --version
2021-08-13 17:18:11 -04:00
Tib3rius d0aef68ab2 Update autorecon.py
Fixes #68

Instead of messing around with limits, we should ignore any line longer than 64 KiB, as it is likely invalid data of some kind anyway.
2021-08-03 00:08:40 -04:00
Tib3rius 8f34de0a89 Fixed bug in manual commands function.
The manual commands function will now merge command arrays instead of replacing them, while removing duplicate commands and preserving order.
Added a default option to get_global / get_global_option function in case user deletes global options.
Updated several plugins that use global options.
2021-08-02 19:35:49 -04:00
Tib3rius 5a584a1b71 Reformatting & API Function Name Updates
Switched spaces to tabs throughout for consistency.
Changed add_port_match() to match_port()
Changed add_service_match() to match_service_name()
Removed un-used variables.
2021-08-02 19:13:09 -04:00
Tib3rius 3b1120db1c Update autorecon.py
Removed several instances of commented out code.
Added exception handling for process killing code.
2021-08-01 17:32:28 -04:00
Tib3rius b34cae3aa7 Update autorecon.py
Replaced bool variable with boolean to avoid type confusion.
2021-08-01 16:55:36 -04:00
Tib3rius c22443acc7 AutoRecon v2 Beta Release
Effectively an initial commit since this is 95% rewritten code.
2021-07-31 21:06:28 -04:00
Samuel Dowling 19a2af743d Added packaging constructs to allow installation using `pip` or `pipx` (#48)
* Restructured program to enable packaging. Moved main into its own function and resolved global dependency issues. Configured pyproject.toml

* Restructured configuration management such that configuration files are stored in the default user configuration directory for the OS they're using, utilising appdirs

* Added exclusion for byte compiled python files

* Removed build files from version control

* Restructured config file initialisation into a function so that it can be called by the entrypoint main() function

* Resolved issues updating global variables from within function scope. Added global identifiers to global variables to make them more readily identifiable as such

* Formatting revision

* Updated documentation to reflect package installation instructions and usage

* Grammatical revision to improve instructional clarity

* Added default sudo for udp scans to prompt for password to elevate privileges

* Added an installation command for all required packages to the README

* Added manual installation instructions, clarification of oscp vm limitations installing pip3, and instructions on how to elevate privileges when installed with pipx

* Formatting revision to improve clarity of instructions and added requirements.txt

* Removed hardcoded sudo commands from default scan configurations

* Changed suggestion to add alias to .bashrc to .profile as this is what's used by default in kali to set initial temrinal conditions

* Fixed error in manual installation that would have resulted in installing python2 packages
2020-04-30 22:48:23 -04:00
Tib3rius 59e66e91ee Removing extra whitespace from lines in target file. 2020-02-10 15:03:51 -05:00
Tib3rius 76a4a1699b Added functionality to specify a list of targets in a file.
Closes #27
2019-10-18 21:20:41 -04:00
Tib3rius 4207874ff5 Formatting fixes. 2019-10-17 22:32:21 -04:00
Tib3rius b3180a45fe Merge branch 'master' of git://github.com/the-c0d3r/AutoRecon into the-c0d3r-master 2019-10-17 22:31:25 -04:00
the-c0d3r 5f147e9fec autorecon.py: fixed termios setattr missing argument 2019-10-18 09:22:14 +08:00
Tib3rius d6854a5447 Added command line option to provide a list of targets in a file. 2019-10-17 20:48:36 -04:00
Vasilij Schneidermann 000d060451 Resolve symlinks to script path correctly (#23)
Previously: If a symlink to autorecon.py is executed, the
configuration directory is found relative to the current directory
Now: The symlink is resolved and the configuration directory is found
relative to the symlink target
2019-10-17 19:47:30 -04:00
the-c0d3r dfd5d4b03b autorecon.py: added termios to restore the flags 2019-10-14 22:07:39 +08:00
Tib3rius 8def11719c Added elapsed time calculation to initial nmap scans.
Added timestamp to heartbeat messages.
2019-09-21 16:53:39 -04:00
Tib3rius 08c193ec7b Add regular "heartbeat" status message for running tasks.
Fixed small bug in elapsed time calculation.
2019-09-20 22:28:50 -04:00
Tib3rius db7d55a899 Added an elapsed time calculation for both individual targets and the entire program run. 2019-09-16 15:03:46 -04:00
Tib3rius 05bca6e372 Added --single-target and --only-scans-dir options. 2019-09-12 14:34:24 -04:00
the-c0d3r 2c01f30793 autorecon.py: fixed stdin/stdout issue 2019-07-05 07:05:59 +08:00
Tib3rius 760ff75028 Added a final completion message indicating that all targets were scanned. 2019-06-18 14:10:20 -04:00
Tib3rius 14566ce13b Fixed onesixtyone scan bug. 2019-04-06 22:46:46 -04:00
Tib3rius 8450863f83 Commands now run via bash instead of sh.
patterns.log renamed to _patterns.log and is no longer created by default.
New "catch all" service scan added, with an sslscan command that only runs if Nmap detects SSL/TLS.
Added a new HTTP scan to screenshot the index page.
2019-04-04 16:46:48 -04:00
Tib3rius f9f24326ea Moved config files to new config directory.
Fixed bug where writing matched patterns would cause exception.
Updated several service scans.
2019-03-29 23:37:11 -04:00
Tib3rius bb209f623f Fixed bug where AutoRecon would attempt to iterate over a None. 2019-03-29 10:15:58 -04:00
Tib3rius 76d28bf958 Matched patterns now get saved to scans/patterns.log
Added lock to prevent multiple asynchronous functions from writing to the same file(s) at the same time.
Moved HTTP Server pattern to nmap-http service scan.
Updated several service scans to use tee so that output is also written to stdout and can be captured.
Moved one gobuster manual command to a scan.
2019-03-28 23:36:30 -04:00
Tib3rius 765135de2d Added service-specific pattern matching.
Updated pattern matching output.
2019-03-26 15:14:03 -04:00