dmiller
b47e7f07ef
Change explicit X==true to X
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-07-08 00:42:18 +00:00
nnposter
6b7652513e
Remove a repeated word
2025-10-04 21:39:16 +00:00
dmiller
8d66c7fbd4
ssh-brute: enable keyboard-interactive auth if necessary
2025-06-12 23:24:36 +00:00
dmiller
b2ebc18360
NSEdoc fixes
2025-03-13 18:13:21 +00:00
dmiller
5258ac6b3c
Be clear about why unpwdb/passdb are not valid. See #2224
2021-01-18 18:15:03 +00:00
nnposter
32033c20fe
Clarify location of the Error object
2020-07-20 21:06:33 +00:00
nnposter
6a9e383f9f
Corrected brute.mode
2020-06-14 01:16:01 +00:00
paulino
82c0361f10
Fixes nil access error. Checks for object before calling the function isReduce
2019-08-05 15:19:24 +00:00
dmiller
8d7a2bc004
Add clarifying parentheses to complex boolean statements as needed.
2019-04-13 21:42:56 +00:00
dmiller
3c88c17efe
Correctly wrap sockets, avoiding mixups. Fixes #1233
2018-07-10 14:23:12 +00:00
dmiller
689ea0e05d
Spelling corrections. Fixes #1160
2018-03-26 14:59:41 +00:00
dmiller
4c1d93405a
Make brute.killstagnated true by default
2018-03-10 03:09:35 +00:00
dmiller
fcde4166be
Don't hang waiting for threads that don't exist if they errored out
2018-03-10 03:09:33 +00:00
dmiller
918c24a540
Don't crash a thread if Driver.connect didn't return a brute.Error
2018-03-10 03:09:33 +00:00
nnposter
b437d9784f
Corrects a typo. Closes #1043
2017-10-22 02:51:01 +00:00
nnposter
00c95dda32
Converts brute.lua argument retrieval to stdnse.get_script_args()
...
to achieve consistent user experience
2017-09-23 23:46:55 +00:00
dmiller
afcd81bc7d
Fix handling of brute.retries script arg. Fixes #1004
2017-09-06 18:01:45 +00:00
evangel
0c142333bb
Merged gsoc-ssh branch. Closes #910
2017-06-29 21:27:35 +00:00
dmiller
49eefce439
Sergey's GSOC 2016 brute.lua improvements. Closes #518
2016-12-09 15:05:51 +00:00
dmiller
cad7183a18
Fix another floating-point print bug: http://seclists.org/nmap-dev/2016/q3/191
2016-08-17 20:31:42 +00:00
dmiller
cb4b46bd53
Canonicalize authors as tables instead of comma-separated strings
2016-06-09 22:46:42 +00:00
dmiller
f4619edece
Update http urls for nmap.org to https
2015-11-05 20:41:05 +00:00
dmiller
e42409be93
XML structured output for brute.lua and creds.lua
...
The @xmloutput section documentation is not done, and I'm not sure how
to best do it, since it will be the same for all brute.lua scripts. This
is how it looks:
metasploit-msgrpc-brute:
<table key="Accounts">
<table>
<elem key="username">root</elem>
<elem key="state">Valid credentials</elem>
<elem key="password">root</elem>
</table>
</table>
<elem key="Statistics">Performed 3 guesses in 4 seconds, average tps: 0</elem>
creds-summary:
<table key="127.0.0.1">
<table key="9929/nping-echo">
<table>
<elem key="password">123456</elem>
<elem key="state">Valid credentials</elem>
</table>
</table>
<table key="55553/unknown">
<table>
<elem key="username">root</elem>
<elem key="state">Valid credentials</elem>
<elem key="password">root</elem>
</table>
</table>
</table>
2014-09-23 05:23:19 +00:00
dmiller
f37ac44380
Move brute.Account to creds.Account
...
In addition to fitting better (brute library is the verb, creds library
is the noun), this will allow creds.lua to use creds.Account internally
where necessary (see subsequent commits)
Also change old references to string argument "OPEN" into
creds.State.VALID.
2014-09-23 05:23:13 +00:00
batrick
ee6622aea4
nselib stdnse.print_debug -> stdnse.debug
...
$ f() { find -name \*.lua -exec /bin/echo sed -i "$1" {} \; ; }
$ f 's/stdnse.print_debug( *\([0-9]*\) *, */stdnse.debug\1(/'
$ f 's/stdnse.print_debug( *"\(.*\))/stdnse.debug1("\1)/'
2014-08-03 00:56:45 +00:00
dmiller
ddcfa8cc90
Spellcheck: common misspellings in the entire source tree
2014-02-21 21:10:51 +00:00
dmiller
1b71f75aad
Spelling fixes for Lua files
...
Mostly in documentation/comments, but a couple code bugs were caught,
including a call to stdnse.pirnt_debug and a mis-declared variable.
2014-02-19 04:15:46 +00:00
dmiller
69e343f0aa
Reindent the last of the NSE libraries.
...
https://secwiki.org/w/Nmap/Code_Standards
2014-02-04 19:47:26 +00:00
dmiller
620f9fdb34
Remove trailing whitespace in lua files
...
Whitespace is not significant, so this should not be a problem.
https://secwiki.org/w/Nmap/Code_Standards
2014-01-23 21:51:58 +00:00
patrik
16d50c48da
Squashed commit of the following:
...
commit fb1fa9373592e81ee004b99cf813e07bf253fbe1
Author: Patrik Karlsson <patrik@cqure.net>
Date: Sun Dec 16 11:49:36 2012 -0500
Fix bug where brute library failed to report error on invalid iterators
2012-12-16 16:51:47 +00:00
patrik
6cfa5aea0f
o [NSE] Added oracle-brute-stealth which exploits CVE-2012-3137, a weakness
...
in the Oracle O5LOGIN authentication scheme. [Dhiru Kholia]
2012-10-06 19:59:45 +00:00
patrik
655f766445
reverted bad commits
2012-10-06 19:38:15 +00:00
patrik
10a34f626a
Squashed commit of the following:
...
commit 5de9e4fa623f88a9b48ef0704244ff843005573a
Author: Patrik Karlsson <patrik@cqure.net>
Date: Sat Oct 6 21:19:08 2012 +0200
Applied patch from Dhiru Kholia adding oracle-brute-stealth and needed changes
reworked the patch slightly and added;
- support for specifying account on command line
- johnfile argument for writing hashes directly to file
2012-10-06 19:25:13 +00:00
aca
c6ed7023c4
Brute and unpwdb lib improvements that allow more flexible iterator specifications. Merge from my dev branch.
2012-07-10 16:35:48 +00:00
batrick
000f6dc4d9
Lua 5.2 upgrade [1] for NSE.
...
[1] http://seclists.org/nmap-dev/2012/q2/34
2012-05-27 08:53:32 +00:00
patrik
588ac4fd32
Disable username as password if passonly option is used [Patrik]
2011-12-31 10:17:42 +00:00
patrik
20575e01b9
Fixed bug that would prevent brute library from stopping to guess passwords
...
for an account, even when the correct password was found. [Patrik]
2011-12-30 20:14:48 +00:00
patrik
8728f181d2
Reverting commit r27082 due to incompatibility with Lua 5.2 [Patrik]
2011-11-13 13:11:39 +00:00
patrik
776a11146e
Added code to brute library that picks up the executing SCRIPT_NAME using getfenv [Patrik]
2011-11-13 12:56:29 +00:00
patrik
4edf096715
o [NSE] Added new functionality and fixed some bugs in the brute library:
...
- Added support for restricting the amount of guesses performed by the
brute library against users, to prevent account lockouts.
- Added support to guess the username as password as incorrectly
suggested as default behavior by the documentation.
- Added support to guess an empty string as password if not present
in the dictionary. [Patrik]
2011-11-13 09:51:15 +00:00
patrik
77380bd9b0
o [NSE] Fixed bug that would prevent brute scripts from running if no service
...
field was present in the port table. [Patrik]
2011-11-10 20:42:47 +00:00
patrik
cbf71a1668
o [NSE] Fixed a bug where the brute library would not abort even after all
...
retries were exhausted [Patrik]
2011-11-02 09:48:33 +00:00
patrik
6c864bd9f8
Changed command line processing to assume cred mode if credfile was supplied
...
and no mode was explicitly given [Patrik]
2011-09-02 06:12:39 +00:00
patrik
5e954c65a9
Added support for comments in the credential_iterator [Patrik]
2011-07-25 17:59:05 +00:00
patrik
2faca7aed1
Added support for scripts to report invalid (non-existing) accounts back
...
to the brute library. This way, they're removed from further guessing.
[Patrik]
2011-07-21 05:56:58 +00:00
patrik
4356fe16a5
* fixed a bug that would result in unnecessary connects and disconnect for
...
discovered accounts
* documented engine options
* added new engine option (nostore) that instructs the library not to store
the discovered credentials in the credential database
2011-07-13 20:49:20 +00:00
patrik
aadac7c8d5
* Fixed a bug in the brute library prevented additional passwords from
...
being found if run in passonly mode.
* Fixed a bug in the brute library preventing detection of duplicate
credential entries requested from the iterator.
2011-07-12 21:23:12 +00:00
gorjan
25f00f01ec
Another possible fix for the NSEDoc arguments in the brute.lua library
2011-07-10 16:20:49 +00:00
patrik
880f927fc0
fixed a statistic bug, cleaned up some code
...
fixed a setMode bug that wouldn't accept mode 'creds'
changed the creds iterator to take a file handle instead of a table
[Patrik]
2011-07-07 09:58:54 +00:00
gorjan
519d93da6d
Fix for the NSEDoc missing @args
2011-07-06 20:19:20 +00:00