Skip to content

Commit

Permalink
Success build in Ubuntu 15.10 linux 4.2.0-42-generic x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
pantyusha committed Apr 1, 2017
1 parent eab26e4 commit fad2243
Show file tree
Hide file tree
Showing 83 changed files with 111 additions and 3,331 deletions.
1 change: 0 additions & 1 deletion .VISHNYA-16.exe

This file was deleted.

1 change: 0 additions & 1 deletion .VISHNYA-32.exe

This file was deleted.

1 change: 0 additions & 1 deletion .VISHNYA-64.exe

This file was deleted.

1 change: 0 additions & 1 deletion .VISHNYA-86.exe

This file was deleted.

1 change: 0 additions & 1 deletion .VISHNYA.exe

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ result_files/*
*.bmp
*.bk


tags.txt
lisca.cpp
main - копия.cpp
Expand All @@ -41,3 +40,5 @@ moc_*
*~
*.user
Makefile
tmp/*
qrc_nesca_3.cpp
2 changes: 1 addition & 1 deletion ActivityDrawerTh_HorNet.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#ifndef ACTIVITYDRAWERTH_HORNET_H
#define ACTIVITYDRAWERTH_HORNET_H

#pragma once
#include "STh.h"

class ActivityDrawerTh_HorNet : public QThread
Expand Down
1 change: 1 addition & 0 deletions BasicAuth.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#ifndef BASICAUTH_H
#define BASICAUTH_H

Expand Down
131 changes: 0 additions & 131 deletions CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion Connector.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "Connector.h"
#include "SSHAuth.h"
#include "Filter.h"
// #include "Filter.h" // Pantene: Где файл?

//#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
//int _pingMyTarget(const char *ip)
Expand Down
2 changes: 1 addition & 1 deletion DrawerTh_GridQoSScanner.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#ifndef DRAWERTH_GRIDQOSSCANNER_H
#define DRAWERTH_GRIDQOSSCANNER_H

#pragma once
#include "STh.h"

class DrawerTh_GridQoSScanner : public QThread
Expand Down
2 changes: 1 addition & 1 deletion DrawerTh_HorNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void DrawerTh_HorNet::run()
{
if(widgetIsHidden == false && tray->isVisible() == false)
{
++factor > 9 ? factor = 0 : NULL;
if (++factor > 9) factor = 0;
dtHN->doEmitionDrawGrid();

for(int i = 0; i < gHeight; i += 10)
Expand Down
1 change: 1 addition & 0 deletions DrawerTh_ME2Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "STh.h"
#include "externData.h"
#include "WebformWorker.h"
#include "MainStarter.h"

QList<QGraphicsPathItem*> DrawerTh_ME2Scanner::itmList;
QVector<QPointF> DrawerTh_ME2Scanner::polyVect;
Expand Down
2 changes: 1 addition & 1 deletion DrawerTh_QoSScanner.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#ifndef DRAWERTH_QOSSCANNER_H
#define DRAWERTH_QOSSCANNER_H

#pragma once
#include "nesca_3.h"

class DrawerTh_QoSScanner : public QThread
Expand Down
2 changes: 1 addition & 1 deletion DrawerTh_VoiceScanner.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#ifndef DRAWERTH_VOICESCANNER_H
#define DRAWERTH_VOICESCANNER_H

#pragma once
#include "nesca_3.h"

class DrawerTh_VoiceScanner : public QThread
Expand Down
Binary file removed EICAR.COM
Binary file not shown.
1 change: 1 addition & 0 deletions FileDownloader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "FileDownloader.h"
#include "mainResources.h"
#include "fstream"
#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions FileUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "externFunctions.h"
#include "STh.h"
#include "mainResources.h"
#include "MainStarter.h"

char **loginLst, **passLst;
char **wfLoginLst, **wfPassLst;
Expand Down
4 changes: 2 additions & 2 deletions HikvisionLogin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ int recvWT(
FD_SET(socket, &ReadSet);
Time.tv_sec = Timeout;
Time.tv_usec = 0;
*bTimedOut = FALSE;
*bTimedOut = false;
n = select(socket + 1, &ReadSet, NULL, NULL, &Time);
if (n > 0) { /* got some data */
return recv(socket, Buffer, Len, 0);
}
if (n == 0) { /* timeout */
*bTimedOut = TRUE;
*bTimedOut = true;
}
return(n); /* trouble */
}
Expand Down
2 changes: 1 addition & 1 deletion HikvisionLogin.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ private: lopaStr hikLogin(const char * sDVRIP, int wDVRPort);
lopaStr RVILobby(const char *ip, const int port);
};

#endif // UTILS_H
#endif // HIKVISIONLOGIN_H
4 changes: 2 additions & 2 deletions IPCAuth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ lopaStr IPC::IPCBrute(const char *ip, int port, char *SPEC, const std::string *c
}
else if (strcmp(SPEC, "JUAN") == 0)
{
std::string &encodedLogin = urlEncode(std::string(login));
std::string &encodedPass = urlEncode(std::string(pass));
std::string encodedLogin = urlEncode(std::string(login));
std::string encodedPass = urlEncode(std::string(pass));
sprintf(request, "%s/cgi-bin/gw.cgi?xml=%%3Cjuan%%20ver=%%22%%22%%20squ=%%22%%22%%20dir=%%22%%22%%3E%%3Cenvload%%20type=%%220%%22%%20usr=%%22%s%%22%%20pwd=%%22%s%%22/%%3E%%3C/juan%%3E&_=1450923182693",
ip, encodedLogin.c_str(), encodedPass.c_str());
}
Expand Down
1 change: 0 additions & 1 deletion IPRandomizer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once

#ifndef RAND_H
#define RAND_H

Expand Down
11 changes: 0 additions & 11 deletions MainStarter.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
#include "STh.h"
#include "MainStarter.h"
#include "Connector.h"
#include "Utils.h"
#include <qjsonobject.h>
#include <qjsonvalue.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include "IPRandomizer.h"
#include "HikvisionLogin.h"
#include <ctime>

int gTimeOut = 3;
int gPingTimeout = 1;
Expand Down Expand Up @@ -50,7 +40,6 @@ char metaOffline[256] = { 0 };

bool saveBackup;


void MainStarter::unBlockButtons(){
stt->doEmitionBlockButton(false);
}
Expand Down
10 changes: 10 additions & 0 deletions MainStarter.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#ifndef MAINSTARTER_H
#define MAINSTARTER_H

#include <ctime>
#include <string>
#include <qjsonobject.h>
#include <qjsonvalue.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include "externData.h"
#include "mainResources.h"
#include "STh.h"
#include "Threader.h"
#include "FileUpdater.h"
#include "Connector.h"
#include "Utils.h"
#include "IPRandomizer.h"
#include "HikvisionLogin.h"

class MainStarter {
private: char dnsTarget[256];
Expand Down
Loading

0 comments on commit fad2243

Please sign in to comment.