diff --git a/docs/scripting.xml b/docs/scripting.xml
index ef3ca2be6..7df90ccc5 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -652,7 +652,7 @@ running on nonstandard ports. Rather than slow the Nmap scan by
running extensive version detection () so that Nmap will recognize the ms-sql
service, you can force the ms-sql-config script to run against all the
-targetted hosts and ports by specifying .
diff --git a/libnetutil/IPv4Header.cc b/libnetutil/IPv4Header.cc
index 2c546e639..482e755de 100644
--- a/libnetutil/IPv4Header.cc
+++ b/libnetutil/IPv4Header.cc
@@ -491,7 +491,7 @@ int IPv4Header::setNextProto(u8 p){
/** Sets field "next protocol" to the number that corresponds to the supplied
- * protocol name. Currently onyl TCP, UDP and ICMP are supported. Any
+ * protocol name. Currently only TCP, UDP and ICMP are supported. Any
* help to extend this functionality would be appreciated. For a list of all
* proto names and numbers check:
* http://www.iana.org/assignments/protocol-numbers/ */
diff --git a/libnetutil/IPv6Header.cc b/libnetutil/IPv6Header.cc
index 172ce717c..69663a672 100644
--- a/libnetutil/IPv6Header.cc
+++ b/libnetutil/IPv6Header.cc
@@ -471,7 +471,7 @@ u8 IPv6Header::getNextHeader() const {
/** Sets field "next header" to the number that corresponds to the supplied
- * protocol name. Currently onyl TCP, UDP and ICMP are supported. Any
+ * protocol name. Currently only TCP, UDP and ICMP are supported. Any
* help to extend this functionality would be appreciated. For a list of all
* proto names and numbers check:
* http://www.iana.org/assignments/protocol-numbers/ */
diff --git a/libnetutil/PacketParser.cc b/libnetutil/PacketParser.cc
index 14cb2713c..36f79bf7d 100644
--- a/libnetutil/PacketParser.cc
+++ b/libnetutil/PacketParser.cc
@@ -1820,7 +1820,7 @@ bool PacketParser::is_response(PacketElement *sent, PacketElement *rcvd){
*
* It returns NULL if no transport layer header is found.
*
- * Note that this method onyl understands IPv4, IPv6 (and its
+ * Note that this method only understands IPv4, IPv6 (and its
* extension headers) and Ethernet. If the supplied packet contains
* something different before the tranport layer, NULL will be returned.
* */
diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc
index d23548abe..6756790f3 100644
--- a/libnetutil/netutil.cc
+++ b/libnetutil/netutil.cc
@@ -2806,7 +2806,7 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) {
/* Basic check to ensure we have an IPv4 datagram attached */
/* TODO: We should actually check the datagram checksum to
- * see if it validates becuase just checking the version number
+ * see if it validates because just checking the version number
* is not enough. On average, if we get random data 1 out of
* 16 (2^4bits) times we will have value 4. */
if ((ip2->ip_v != 4) || ((ip2->ip_hl * 4) < 20) || ((ip2->ip_hl * 4) > 60)) {
@@ -3402,7 +3402,7 @@ static int route_dst_generic(const struct sockaddr_storage *dst,
netutil_fatal("%s passed a NULL dst address", __func__);
if(spoofss!=NULL){
- /* Throughout the rest of this function we only change rnfo->srcaddr if the source isnt spoofed */
+ /* Throughout the rest of this function we only change rnfo->srcaddr if the source isn't spoofed */
memcpy(&rnfo->srcaddr, spoofss, sizeof(rnfo->srcaddr));
/* The device corresponding to this spoofed address should already have been set elsewhere. */
assert(device!=NULL && device[0]!='\0');
diff --git a/ncat/test/ncat-test.pl b/ncat/test/ncat-test.pl
index 19c0d478d..904478dee 100755
--- a/ncat/test/ncat-test.pl
+++ b/ncat/test/ncat-test.pl
@@ -3144,7 +3144,7 @@ kill_children;
{
local $xfail = 1;
-test "SOCKS5 client, server sends unkown code",
+test "SOCKS5 client, server sends unknown code",
sub {
my ($pid,$code);
my $buf="";
diff --git a/nse_libssh2.cc b/nse_libssh2.cc
index bf721b663..afc9aa483 100644
--- a/nse_libssh2.cc
+++ b/nse_libssh2.cc
@@ -1,7 +1,7 @@
/*
* Binding for the libssh2 library. Note that there is not a one-to-one correspondance
* between functions in libssh2 and the binding.
-* Currently, during the ssh2 handshake, a call to nsock.recieve may result in an EOF
+* Currently, during the ssh2 handshake, a call to nsock.receive may result in an EOF
* error. This appears to only occur when stressing the ssh server (ie during a brute
* force attempt) or while behind a restrictive firewall/IDS.
* by Devin Bjelland
diff --git a/nse_zlib.cc b/nse_zlib.cc
index 85f817035..44f176941 100644
--- a/nse_zlib.cc
+++ b/nse_zlib.cc
@@ -34,7 +34,7 @@ extern "C" {
/*
** =========================================================================
-** compile time options wich determine available functionality
+** compile time options which determine available functionality
** =========================================================================
*/
@@ -596,16 +596,16 @@ static int lzstream_decompress(lua_State *L) {
static int lzstream_readline(lua_State *L) {
lz_stream *s;
- int sucess;
+ int success;
s = lzstream_check(L, lua_upvalueindex(1), LZ_INFLATE);
- sucess = lz_read_line(L, s);
+ success = lz_read_line(L, s);
if (s->error != Z_OK) {
return lz_pushresult(L, s);
}
- if (sucess) {
+ if (success) {
return 1;
} else {
/* EOF */
diff --git a/nselib/bin.lua b/nselib/bin.lua
index 659a9c758..a0da4001f 100644
--- a/nselib/bin.lua
+++ b/nselib/bin.lua
@@ -101,7 +101,7 @@ function _ENV.pack (format, ...)
n = #n == 0 and 1 or tointeger(n)
if o == "H" then
-- hex string
- -- N.B. n is the reptition
+ -- N.B. n is the repetition
assert(n > 0, "n cannot be 0") -- original bin library allowed this, it doesn't make sense
local new = "=" -- !! in original bin library, hex strings are always native
for j = i, i+n-1 do
@@ -113,7 +113,7 @@ function _ENV.pack (format, ...)
return new
elseif o == "B" then
-- bit string
- -- N.B. n is the reptition
+ -- N.B. n is the repetition
error "pack option \"B\" is no longer supported"
elseif o == "p" then
i = i + n
@@ -126,7 +126,7 @@ function _ENV.pack (format, ...)
return ("s4"):rep(n)
elseif o == "A" then
-- an unterminated string
- -- N.B. n is the reptition
+ -- N.B. n is the repetition
assert(n > 0, "n cannot be 0") -- original bin library allowed this, it doesn't make sense
local new = ""
for j = i, i+n-1 do
diff --git a/nselib/bittorrent.lua b/nselib/bittorrent.lua
index 6dc03ee3a..48491a8ab 100644
--- a/nselib/bittorrent.lua
+++ b/nselib/bittorrent.lua
@@ -699,7 +699,7 @@ Torrent =
if not timeout or type(timeout)~="number" then timeout = 30 end
- -- peer node table aka the condvar!
+ -- peer node table a.k.a. the condvar!
local pnt = {}
pnt.peers = {}
pnt.peers_dht_ping = self.peers
diff --git a/nselib/brute.lua b/nselib/brute.lua
index fe027759c..d1e8fcdb5 100644
--- a/nselib/brute.lua
+++ b/nselib/brute.lua
@@ -155,7 +155,7 @@
-- Following is an example how it can be done for FTP brute.
--
--
--- local line =
+-- local line =
--
-- if(string.match(line, "^230")) then
-- stdnse.debug1("Successful login: %s/%s", user, pass)
@@ -701,7 +701,7 @@ Engine = {
status, response = driver:connect()
- -- Temporary workaround. Did not connect sucessfully
+ -- Temporary workaround. Did not connect successfully
-- due to stressed server
if not status then
-- We have to first check whether the response is a brute.Error
diff --git a/nselib/coap.lua b/nselib/coap.lua
index 418dcaacb..a9fae79e5 100644
--- a/nselib/coap.lua
+++ b/nselib/coap.lua
@@ -19,7 +19,7 @@ _ENV = stdnse.module("coap", stdnse.seeall)
--
-- This library does not currently implement the entire CoAP protocol,
-- only those behaviours which are necessary for existing scripts are
--- included. Extending to accomodate additional control packets should
+-- included. Extending to accommodate additional control packets should
-- not be difficult.
--
-- @author "Mak Kolybabi "
diff --git a/nselib/creds.lua b/nselib/creds.lua
index 62a7092ad..7d8d4b5e1 100644
--- a/nselib/creds.lua
+++ b/nselib/creds.lua
@@ -110,7 +110,7 @@
-- * table to file in CSV or text formats
--
-- Revised 2015/19/08 - v0.5 - Gioacchino Mazzurco
--- * added multitag support to share credential easier accross
+-- * added multitag support to share credential easier across
-- scripts
--
diff --git a/nselib/libssh2.luadoc b/nselib/libssh2.luadoc
index 70a999a33..1801ead42 100644
--- a/nselib/libssh2.luadoc
+++ b/nselib/libssh2.luadoc
@@ -7,7 +7,7 @@
-- in libssh2-utility instead, which wraps many of the functions here in an easier
-- to use class, SSHConnection.
--
--- For perfomance reasons, the modules reuses the NSE's existing nsock socket
+-- For performance reasons, the modules reuses the NSE's existing nsock socket
-- pool.
--
-- @author Devin Bjelland
diff --git a/nselib/mqtt.lua b/nselib/mqtt.lua
index 0a097ef7b..a8c64ed24 100644
--- a/nselib/mqtt.lua
+++ b/nselib/mqtt.lua
@@ -16,7 +16,7 @@ _ENV = stdnse.module("mqtt", stdnse.seeall)
--
-- This library does not currently implement the entire MQTT protocol,
-- only those control packets which are necessary for existing scripts
--- are included. Extending to accomodate additional control packets
+-- are included. Extending to accommodate additional control packets
-- should not be difficult.
--
-- @author "Mak Kolybabi "
diff --git a/nselib/msrpc.lua b/nselib/msrpc.lua
index 821000648..48006b6e3 100644
--- a/nselib/msrpc.lua
+++ b/nselib/msrpc.lua
@@ -3494,7 +3494,7 @@ end
-- In order to remember the starting and ending positions of different unmarshalled
-- strings and SERVICE_STATUS structs I had to store the previous offset of the
-- unmarshalled string. This previous offset will be helpful while retrieving the
--- continous strings from the buffer.
+-- continuous strings from the buffer.
--
--@param arguments The marshalled arguments to extract the data.
--@param pos The position within arguments.
diff --git a/nselib/openssl.luadoc b/nselib/openssl.luadoc
index b01d2c35f..986870433 100644
--- a/nselib/openssl.luadoc
+++ b/nselib/openssl.luadoc
@@ -50,7 +50,7 @@ function bignum_is_bit_set(bignum, position)
--- Checks whether bignum is probably prime.
--
--- Performs Miller-Rabin probablistic primality tests.
+-- Performs Miller-Rabin probabilistic primality tests.
-- @param bignum bignum to check for primality
-- @param nchecks Number of checks to perform. Default: number of checks dependent on bitsize of bignum, with a false positive rate of at most 2^-80
-- @return True if the number is probably prime, false if it is composite.
diff --git a/nselib/rmi.lua b/nselib/rmi.lua
index af220945f..35bb38367 100644
--- a/nselib/rmi.lua
+++ b/nselib/rmi.lua
@@ -239,7 +239,7 @@ BufferedReader = {
-- The classes are generated when this file is loaded, by the definitions in the JavaTypes
-- table. That table contains mappings between the format used by bin and the types
--- available in java, aswell as the lengths (used for availability-checks) and the name which
+-- available in java, as well as the lengths (used for availability-checks) and the name which
-- is prefixed by read* or write* when monkey-patching the classes and adding functions.
-- For example: {name = 'Int', expr = '>i', len= 4}, will generate the functions
-- writeInt(self, value) and readInt() respectively
diff --git a/nselib/smb.lua b/nselib/smb.lua
index 80b00b880..c9d499eb0 100644
--- a/nselib/smb.lua
+++ b/nselib/smb.lua
@@ -2749,7 +2749,7 @@ function file_delete(host, share, remotefile)
end
---
--- List files based on a pattern withing a given share and directory
+-- List files based on a pattern within a given share and directory
--
-- @param smbstate the SMB object associated with the connection
-- @param fname filename to search for, relative to share path
diff --git a/nselib/tn3270.lua b/nselib/tn3270.lua
index a196722f3..1407d058c 100644
--- a/nselib/tn3270.lua
+++ b/nselib/tn3270.lua
@@ -225,7 +225,7 @@ Telnet = {
SFE_3270 = "192",
order_max = "\063", -- tn3270 orders can't be greater than 0x3F
COLS = 80, -- hardcoded width.
- ROWS = 24, -- hardcoded rows. We only support 3270 model 2 wich was 24x80.
+ ROWS = 24, -- hardcoded rows. We only support 3270 model 2 which was 24x80.
buffer_addr = 1,
cursor_addr = 1,
isSSL = true,
diff --git a/nselib/url.lua b/nselib/url.lua
index 0cf9b34a3..92b20f0ec 100644
--- a/nselib/url.lua
+++ b/nselib/url.lua
@@ -56,7 +56,7 @@ local function make_set(t)
return s
end
--- these are allowed withing a path segment, along with alphanum
+-- these are allowed within a path segment, along with alphanum
-- other characters must be escaped
local segment_set = make_set {
"-", "_", ".", "!", "~", "*", "'", "(",
diff --git a/nsock/src/engine_iocp.c b/nsock/src/engine_iocp.c
index 36fe044f7..f83ee1aa5 100644
--- a/nsock/src/engine_iocp.c
+++ b/nsock/src/engine_iocp.c
@@ -717,7 +717,7 @@ static void terminate_overlapped_event(struct npool *nsp, struct nevent *nse) {
}
}
-/* Retrieve the ammount of bytes transferred or set the appropriate error */
+/* Retrieve the amount of bytes transferred or set the appropriate error */
static int get_overlapped_result(struct npool *nsp, int fd, const void *buffer, size_t count) {
char *buf = (char *)buffer;
DWORD dwRes = 0;
diff --git a/output.cc b/output.cc
index 14e0fd846..63bb2423a 100644
--- a/output.cc
+++ b/output.cc
@@ -2104,7 +2104,7 @@ void printosscanoutput(Target *currenths) {
log_flush_all();
}
-/* An auxillary function for printserviceinfooutput(). Returns
+/* An auxiliary function for printserviceinfooutput(). Returns
non-zero if a and b are considered the same hostnames. */
static int hostcmp(const char *a, const char *b) {
return strcasecmp(a, b) == 0;
diff --git a/scripts/cics-enum.nse b/scripts/cics-enum.nse
index 62c33854d..e4a05c4d9 100644
--- a/scripts/cics-enum.nse
+++ b/scripts/cics-enum.nse
@@ -24,7 +24,7 @@ found for CICS transaction IDs.
---
-- @args idlist Path to list of transaction IDs.
-- Defaults to the list of CICS transactions from IBM.
--- @args cics-enum.commands Commands in a semi-colon seperated list needed
+-- @args cics-enum.commands Commands in a semi-colon separated list needed
-- to access CICS. Defaults to CICS.
-- @args cics-enum.path Folder used to store valid transaction id 'screenshots'
-- Defaults to None and doesn't store anything.
diff --git a/scripts/cics-user-brute.nse b/scripts/cics-user-brute.nse
index 51055086b..5320d4c6c 100644
--- a/scripts/cics-user-brute.nse
+++ b/scripts/cics-user-brute.nse
@@ -12,7 +12,7 @@ CICS User ID brute forcing script for the CESL login screen.
]]
---
--- @args cics-user-brute.commands Commands in a semi-colon seperated list needed
+-- @args cics-user-brute.commands Commands in a semi-colon separated list needed
-- to access CICS. Defaults to CICS.
--
-- @usage
diff --git a/scripts/cics-user-enum.nse b/scripts/cics-user-enum.nse
index 723e045d5..c4be3995b 100644
--- a/scripts/cics-user-enum.nse
+++ b/scripts/cics-user-enum.nse
@@ -13,7 +13,7 @@ CICS User ID enumeration script for the CESL/CESN Login screen.
---
-- @args idlist Path to list of transaction IDs.
-- Defaults to the list of CICS transactions from IBM.
--- @args cics-user-enum.commands Commands in a semi-colon seperated list needed
+-- @args cics-user-enum.commands Commands in a semi-colon separated list needed
-- to access CICS. Defaults to CICS.
-- @args cics-user-enum.transaction By default this script uses the CESL transaction.
-- on some systems the transactio ID CESN is needed. Use this argument to change the
diff --git a/scripts/http-webdav-scan.nse b/scripts/http-webdav-scan.nse
index c55aa6f6c..2757fea30 100644
--- a/scripts/http-webdav-scan.nse
+++ b/scripts/http-webdav-scan.nse
@@ -31,9 +31,9 @@ This script takes inspiration from the various scripts listed here:
-- | Allowed Methods: GET, HEAD, COPY, MOVE, POST, PUT, PROPFIND, PROPPATCH, OPTIONS, MKCOL, DELETE, TRACE, REPORT
-- | Server Type: DAV/0.9.8 Python/2.7.6
-- | Server Date: Fri, 22 May 2015 19:28:00 GMT
--- | WebDAV type: unkown
+-- | WebDAV type: Unknown
-- | Directory Listing:
--- | http://localhosft
+-- | http://localhost
-- | http://localhost:8008/WebDAVTest_b1tqTWeyRR
-- | http://localhost:8008/WebDAVTest_A0QWJb7hcK
-- | http://localhost:8008/WebDAVTest_hf9Mqqpi1M
@@ -44,7 +44,7 @@ This script takes inspiration from the various scripts listed here:
-- PROPFIND, PROPPATCH, OPTIONS, MKCOL, DELETE, TRACE, REPORT
-- DAV/0.9.8 Python/2.7.6
-- Fri, 22 May 2015 19:28:00 GMT
--- unkown
+-- Unknown
--
-- http://localhost
-- http://localhost:8008/WebDAVTest_b1tqTWeyRR
@@ -78,7 +78,7 @@ local function get_options (host, port, path)
if response.header['dav'] and response.header['dav']:find('1') then
ret['WebDAV'] = true
- ret['WebDAV type'] = 'Unkown'
+ ret['WebDAV type'] = 'Unknown'
if response.header['X-MSDAVEXT'] then
ret['WebDAV type'] = 'SHAREPOINT DAV'
end
diff --git a/scripts/omp2-enum-targets.nse b/scripts/omp2-enum-targets.nse
index 2aa4f0dcd..7afd8df5a 100644
--- a/scripts/omp2-enum-targets.nse
+++ b/scripts/omp2-enum-targets.nse
@@ -48,7 +48,7 @@ portrule = shortport.port_or_service(9390, "openvas")
--- Return the list of targets defined for a given user
--
-- @param host the target host table
--- @param port the targetted OMP port
+-- @param port the targeted OMP port
-- @param username the username to use to login
-- @param password the password to use to login
-- @return the list of targets for this user or nil
diff --git a/scripts/openwebnet-discovery.nse b/scripts/openwebnet-discovery.nse
index 47e132fe5..f8d78b236 100644
--- a/scripts/openwebnet-discovery.nse
+++ b/scripts/openwebnet-discovery.nse
@@ -153,7 +153,7 @@ local function get_response(sd, request)
if status == nil then
stdnse.debug("Error: " .. data)
if data == "TIMEOUT" then
- -- Avoids false results by capturing NACK after TIMEOUT occured.
+ -- Avoids false results by capturing NACK after TIMEOUT occurred.
status, data = sd:receive_buf("##", true)
break
else
diff --git a/scripts/smb-vuln-cve-2017-7494.nse b/scripts/smb-vuln-cve-2017-7494.nse
index 2fbf0f47f..e48407c4d 100644
--- a/scripts/smb-vuln-cve-2017-7494.nse
+++ b/scripts/smb-vuln-cve-2017-7494.nse
@@ -23,7 +23,7 @@ The script checks the preconditions for the exploit to happen:
services running potentially vulnerable versions of Samba, and run the
exploit against those services. This is useful if you wish to scan a
group of hosts quickly for the vulnerability based on the version number.
- However, because of ther version number, some patched versions may still
+ However, because of their version number, some patched versions may still
show up as likely vulnerable. Here, we use smb.get_os(host) to do
versioning of the Samba version and compare it to see if it is a known
vulnerable version of Samba. Note that this check is not conclusive:
diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse
index 3b51a6116..b91664a3b 100644
--- a/scripts/ssl-enum-ciphers.nse
+++ b/scripts/ssl-enum-ciphers.nse
@@ -922,7 +922,7 @@ end
-- "server": the server prefers its own order. In this case ciphers is non-nil.
-- "client": the server follows the client preference. ciphers is nil.
-- "indeterminate": returned when there are only 0 or 1 ciphers. ciphers is nil.
--- nil: an error ocurred during the test. err is non-nil.
+-- nil: an error occurred during the test. err is non-nil.
-- err is an error message string that is non-nil when preference is nil or
-- indeterminate.
--
diff --git a/scripts/tso-brute.nse b/scripts/tso-brute.nse
index c05c61650..d9f1b98c4 100644
--- a/scripts/tso-brute.nse
+++ b/scripts/tso-brute.nse
@@ -33,7 +33,7 @@ TSO user IDs have the following rules:
-- |_ Statistics: Performed 6 guesses in 6 seconds, average tps: 1
-- Final times for host: srtt: 96305 rttvar: 72303 to: 385517
--
--- @args tso-brute.commands Commands in a semi-colon seperated list needed
+-- @args tso-brute.commands Commands in a semi-colon separated list needed
-- to access TSO. Defaults to TSO.
--
-- @args tso-brute.always_logon TSO logon can kick a user off if it guesses
diff --git a/scripts/tso-enum.nse b/scripts/tso-enum.nse
index f04bd331c..40f4ebc09 100644
--- a/scripts/tso-enum.nse
+++ b/scripts/tso-enum.nse
@@ -32,7 +32,7 @@ TSO user IDs have the following rules:
]]
---
--- @args tso-enum.commands Commands in a semi-colon seperated list needed
+-- @args tso-enum.commands Commands in a semi-colon separated list needed
-- to access TSO. Defaults to tso.
--
-- @usage
diff --git a/scripts/vtam-enum.nse b/scripts/vtam-enum.nse
index a02ca4313..3dea2cb0b 100644
--- a/scripts/vtam-enum.nse
+++ b/scripts/vtam-enum.nse
@@ -27,7 +27,7 @@ found for application IDs.
---
--@args idlist Path to list of application IDs to test.
-- Defaults to nselib/data/vhosts-default.lst.
---@args vtam-enum.commands Commands in a semi-colon seperated list needed
+--@args vtam-enum.commands Commands in a semi-colon separated list needed
-- to access VTAM. Defaults to nothing.
--@args vtam-enum.path Folder used to store valid transaction id 'screenshots'
-- Defaults to None and doesn't store anything.