Commit c0b4ff8b authored by Dalibor Dukic's avatar Dalibor Dukic
Browse files

Fix spelling errors

parent 8746c788
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ parse_status(struct Output *out,
    record.ttl       = buf[11];
    
    /*
     * Now report ther result
     * Now report the result
     */
    output_report_status(out, 
                    record.timestamp,
@@ -90,7 +90,7 @@ parse_banner3(struct Output *out, unsigned char *buf, size_t buf_length)
}

/***************************************************************************
 * Parse the BANNER record, extracting the timestamp, IP addres, and port
 * Parse the BANNER record, extracting the timestamp, IP address, and port
 * number. We also convert the banner string into a safer form.
 ***************************************************************************/
static void
+4 −4
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ masscan_save_state(struct Masscan *masscan)
 * There can be multiple ranges on a line, delimited by spaces. In fact,
 * millions of ranges can be on a line: there is limit to the line length.
 * That makes reading the file a little bit squirrelly. From one perspective
 * this parser doesn't treat the the new-line '\n' any different than other
 * this parser doesn't treat the new-line '\n' any different than other
 * space. But, from another perspective, it has to, because things like
 * comments are terminated by a newline. Also, it has to count the number
 * of lines correctly to print error messages.
@@ -908,7 +908,7 @@ masscan_set_parameter(struct Masscan *masscan,
        unsigned value_length = (unsigned)strlen(value);
        unsigned char *newvalue;
        
        /* allcoate new value */
        /* allocate new value */
        newvalue = (unsigned char*)malloc(value_length+1);
        memcpy(newvalue, value, value_length+1);
        newvalue[value_length] = '\0';
@@ -1240,7 +1240,7 @@ masscan_help()
" adapter-ip = 192.168.10.123\n"
" adapter-mac = 00-11-22-33-44-55\n"
" router-mac = 66-55-44-33-22-11\n"
"All single-dash parameters have a spelled out double-dash equivelent,\n"
"All single-dash parameters have a spelled out double-dash equivalent,\n"
"so '-p80' is the same as '--ports 80' (or 'ports = 80' in config file).\n"
"To use the config file, type:\n"
" masscan -c <filename>\n"
@@ -1382,7 +1382,7 @@ masscan_command_line(struct Masscan *masscan, int argc, char *argv[])
                        break;
                    case 'R':
                        /* -iR in nmap makes it randomize addresses completely. Thus,
                         * it's nearest equivelent is scanning the entire Internet range */
                         * it's nearest equivalent is scanning the entire Internet range */
                        masscan_set_parameter(masscan, "include", "0.0.0.0/0");
                        break;
                    default:
+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ masscan_initialize_adapter(
     * IP ADDRESS
     *
     * We need to figure out that IP address to send packets from. This
     * is done by queryin the adapter (or configured by user). If the
     * is done by querying the adapter (or configured by user). If the
     * adapter doesn't have one, then the user must configure one.
     */
    adapter_ip = masscan->nic[index].src.ip.first;
+4 −4
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ struct ThreadPair {


/***************************************************************************
 * The recieve thread doesn't transmit packets. Instead, it queues them
 * The receive thread doesn't transmit packets. Instead, it queues them
 * up on the transmit thread. Every so often, the transmit thread needs
 * to flush this transmit queue and send everything.
 *
@@ -352,7 +352,7 @@ infinite:
             *  that index into some other, but unique/1-to-1, number in the
             *  same range. That way we visit all targets, but in a random 
             *  order. Then, once we've shuffled the index, we "pick" the
             *  the IP address and port that the index refers to.
             *  IP address and port that the index refers to.
             */
            xXx = (i + (r--) * rate);
            if (rate > range)
@@ -603,7 +603,7 @@ receive_thread(void *v)
        unsigned cookie;

        /*
         * RECIEVE
         * RECEIVE
         *
         * This is the boring part of actually receiving a packet
         */
@@ -1258,7 +1258,7 @@ int main(int argc, char *argv[])
     * On non-Windows systems, read the defaults from the file in
     * the /etc directory. These defaults will contain things
     * like the output directory, max packet rates, and so on. Most
     * importanlty, the master "--excludefile" might be placed here,
     * importantly, the master "--excludefile" might be placed here,
     * so that blacklisted ranges won't be scanned, even if the user
     * makes a mistake
     */
+3 −3
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ struct Masscan
    struct RangeList ports;

    /**
     * IPv4 addresses/ranges that are to be exluded from the scan. This teakes
     * precendence over any 'include' statement
     * IPv4 addresses/ranges that are to be exluded from the scan. This takes
     * precedence over any 'include' statement
     */
    struct RangeList exclude_ip;
    struct RangeList exclude_port;
@@ -141,7 +141,7 @@ struct Masscan
        unsigned ttl; /* starting IP TTL field */
        unsigned badsum; /* bad TCP/UDP/SCTP checksum */

        /* ouput options */
        /* output options */
        unsigned packet_trace:1; /* print transmit messages */
        unsigned open_only:1; /* show only open ports */
        unsigned reason; /* print reason port is open, which is redundant for us */
Loading