|
|
@@ -31,7 +31,7 @@ |
|
|
|
|
|
|
|
using namespace std; // Introduce standard namespace.
|
|
|
|
|
|
|
|
const char* VERSION_INFO = "SNF Client Version 3.0 Build: " __DATE__ " " __TIME__;
|
|
|
|
const char* VERSION_INFO = "SNF Client Version 3.1 Build: " __DATE__ " " __TIME__;
|
|
|
|
|
|
|
|
time_t Timestamp() { // Get an ordinary timestamp.
|
|
|
|
time_t rawtime; // Grab raw time from
|
|
|
@@ -274,7 +274,7 @@ int main(int argc, char* argv[]) { |
|
|
|
|
|
|
|
// XHeader Scan W/ Source IP? --------------------------------------
|
|
|
|
|
|
|
|
if(0 == Command1String.find("-source=")) { // If things are refersed
|
|
|
|
if(0 == Command1String.find("-source=")) { // If things are reversed
|
|
|
|
string tmp = Command2String; // swap them to the order we
|
|
|
|
Command2String = Command1String; // are expecting. If we're wrong
|
|
|
|
Command1String = tmp; // then that case will be handled
|
|
|
@@ -288,7 +288,7 @@ int main(int argc, char* argv[]) { |
|
|
|
GetXHDRs = true; // Turn on XHDRs for the scan.
|
|
|
|
|
|
|
|
const int SourceIPIndex = Command2String.find("=") + 1; // Find source after "-source="
|
|
|
|
IP4Address SourceIP = Command1String.substr(SourceIPIndex); // Extract the source IP.
|
|
|
|
IP4Address SourceIP = Command2String.substr(SourceIPIndex); // Extract the source IP.
|
|
|
|
|
|
|
|
if(DebugMode) {
|
|
|
|
cout << "(xhdr [" << (string) SourceIP // In debug - tell what we are doing.
|