mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Modify some offensive terminology in comments.
This commit is contained in:
@@ -217,7 +217,7 @@ class ARPHeader : public NetworkLayerElement {
|
||||
u8 ar_pln; /* Protocol Address Length. */
|
||||
u16 ar_op; /* Operation Code. */
|
||||
u8 data[20];
|
||||
// Cannot use these because the fucking alignment screws up
|
||||
// Cannot use these because the four-flushing alignment screws up
|
||||
// everything. I miss ANSI C.
|
||||
//u8 ar_sha[6]; /* Sender Hardware Address. */
|
||||
//u32 ar_sip; /* Sender Protocol Address (IPv4 address). */
|
||||
|
||||
@@ -341,7 +341,7 @@ void bounce_scan(Target *target, u16 *portarray, int numports,
|
||||
if (o.debugging)
|
||||
log_write(LOG_STDOUT, "result of LIST: %s", recvbuf);
|
||||
if (!strncmp(recvbuf, "500", 3)) {
|
||||
/* fuck, we are not aligned properly */
|
||||
/* oh dear, we are not aligned properly */
|
||||
if (o.verbose || o.debugging)
|
||||
error("FTP command misalignment detected ... correcting.");
|
||||
res = recvtime(sd, recvbuf, 2048, 10, NULL);
|
||||
|
||||
@@ -759,7 +759,7 @@ int ProbeMode::doIPv6ThroughSocket(int rawfd){
|
||||
/* Transport layer checksum */
|
||||
/* This is totally crazy. We have to tell the kernel EXPLICITLY that we
|
||||
* want it to set the TCP/UDP checksum for us. Why the hell is this the
|
||||
* default behavior if it's so fucking difficult to get the IPv6 source
|
||||
* default behavior if it's so incredibly difficult to get the IPv6 source
|
||||
* address?
|
||||
* Additionally, we have to be very careful not to set this option when
|
||||
* dealing with ICMPv6 because in that case the kernel computes the
|
||||
|
||||
@@ -3169,7 +3169,7 @@ bool HostOsScan::processTUdpResp(HostOsScanStats *hss, struct ip *ip) {
|
||||
if (in_cksum((unsigned short *)ip2, 20) == checksum) {
|
||||
AV.value = "G"; /* The "expected" good value */
|
||||
} else {
|
||||
AV.value = "I"; /* They fucked it up */
|
||||
AV.value = "I"; /* They modified it */
|
||||
}
|
||||
*checksumptr = checksum;
|
||||
}
|
||||
@@ -3194,7 +3194,7 @@ bool HostOsScan::processTUdpResp(HostOsScanStats *hss, struct ip *ip) {
|
||||
}
|
||||
AV.attribute = "RUD";
|
||||
if (datastart < dataend)
|
||||
AV.value = "I"; /* They fucked it up */
|
||||
AV.value = "I"; /* They modified it */
|
||||
else
|
||||
AV.value = "G";
|
||||
AVs.push_back(AV);
|
||||
|
||||
@@ -821,6 +821,7 @@ static char *substvar(char *tmplvar, char **tmplvarend,
|
||||
// matches in ovector. The NUL-terminated newly composted string is
|
||||
// placed into 'newstr', as long as it doesn't exceed 'newstrlen'
|
||||
// bytes. Trailing whitespace and commas are removed. Returns zero for success
|
||||
// FIXME: The newstrlen argument is not actually checked, is it?
|
||||
//
|
||||
// The transform argument is a function pointer. If not NULL, the given
|
||||
// function is applied to all substitutions before they are inserted
|
||||
@@ -836,7 +837,7 @@ static int dotmplsubst(const u8 *subject, int subjectlen,
|
||||
char *subst;
|
||||
|
||||
if (!newstr || !tmpl) return -1;
|
||||
if (newstrlen < 3) return -1; // fuck this!
|
||||
if (newstrlen < 3) return -1; // Have a nice day!
|
||||
|
||||
while(*srcstart) {
|
||||
// First do any literal text before '$'
|
||||
|
||||
Reference in New Issue
Block a user