Kaynağa Gözat

added changelog and fixed -xhdr -source string overflow

master
Pete McNeil 5 yıl önce
ebeveyn
işleme
2bc64ceba3
2 değiştirilmiş dosya ile 9 ekleme ve 3 silme
  1. 3
    3
      SNFClient/main.cpp
  2. 6
    0
      changelog.md

+ 3
- 3
SNFClient/main.cpp Dosyayı Görüntüle

@@ -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.

+ 6
- 0
changelog.md Dosyayı Görüntüle

@@ -0,0 +1,6 @@
# ChangeLog

## [3.1] 20191104_M
- Set up the changelog.md file
- fixed a bug where combining -xhdr and -source caused a string overflow


Loading…
İptal
Kaydet