mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-12-26 01:11:47 +00:00
Added port in "Host: ip"-field
This commit is contained in:
parent
a3d9acdcb9
commit
3aa57ac41f
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class CheckProxy_Th : public QThread
|
class CheckProxy_Th : public QThread
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class DrawerTh_HorNet : public QThread
|
class DrawerTh_HorNet : public QThread
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class DrawerTh_QoSScanner : public QThread
|
class DrawerTh_QoSScanner : public QThread
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class DrawerTh_VoiceScanner : public QThread
|
class DrawerTh_VoiceScanner : public QThread
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
extern int iWantToConnect;
|
extern int iWantToConnect;
|
||||||
|
|
||||||
class IRCPinger_Th : public QThread
|
class IRCPinger_Th : public QThread
|
||||||
|
1
STh.h
1
STh.h
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
#include "externFunctions.h"
|
#include "externFunctions.h"
|
||||||
|
|
||||||
extern int tMax;
|
extern int tMax;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <libssh/libssh.h>
|
#include <libssh/libssh.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
|
#include "resource.h"
|
||||||
#include "externFunctions.h"
|
#include "externFunctions.h"
|
||||||
#include "externData.h"
|
#include "externData.h"
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -1800,6 +1801,9 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
|
|||||||
strcat(request, " HTTP/1.1\r\n");
|
strcat(request, " HTTP/1.1\r\n");
|
||||||
strcat(request, "Host: ");
|
strcat(request, "Host: ");
|
||||||
strcat(request, ip);
|
strcat(request, ip);
|
||||||
|
strcat(request, ":");
|
||||||
|
char tbuff[16] = {0};
|
||||||
|
strcat(request, itoa(port, tbuff, 10));
|
||||||
if(cookieLen != 0)
|
if(cookieLen != 0)
|
||||||
{
|
{
|
||||||
strcat(request, "\r\nCookie: ");
|
strcat(request, "\r\nCookie: ");
|
||||||
@ -1922,6 +1926,9 @@ lopaStr _WFBrut(char *cookie, char *ip, int port, char *methodVal, char *actionV
|
|||||||
strcat(request, " HTTP/1.1\r\n");
|
strcat(request, " HTTP/1.1\r\n");
|
||||||
strcat(request, "Host: ");
|
strcat(request, "Host: ");
|
||||||
strcat(request, ip);
|
strcat(request, ip);
|
||||||
|
strcat(request, ":");
|
||||||
|
char tbuff[16] = {0};
|
||||||
|
strcat(request, itoa(port, tbuff, 10));
|
||||||
if(cookieLen != 0)
|
if(cookieLen != 0)
|
||||||
{
|
{
|
||||||
strcat(request, "\r\nCookie: ");
|
strcat(request, "\r\nCookie: ");
|
||||||
@ -2500,7 +2507,7 @@ QString strIP;
|
|||||||
QString strPort;
|
QString strPort;
|
||||||
const char *buff1 = "GET / HTTP/1.1\r\nHost: ";
|
const char *buff1 = "GET / HTTP/1.1\r\nHost: ";
|
||||||
const char *buff2 = "\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: us-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nConnection: close\r\n\r\n";
|
const char *buff2 = "\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Language: us-US,ru;q=0.9,en;q=0.8\r\nAccept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\nAccept-Encoding: text, identity, *;q=0\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; us; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11\r\nConnection: close\r\n\r\n";
|
||||||
int _SSHLobby(char *ip, int port, conSTR *CSTR)
|
int Connector::_SSHLobby(char *ip, int port, conSTR *CSTR)
|
||||||
{
|
{
|
||||||
char banner[256] = {0};
|
char banner[256] = {0};
|
||||||
strncpy(banner, _get_ssh_banner(ip, port), 256);
|
strncpy(banner, _get_ssh_banner(ip, port), 256);
|
||||||
@ -2527,6 +2534,8 @@ int Connector::_ConnectToPort(char *ip, const char *portC, char *hl)
|
|||||||
int strFlag = 0;
|
int strFlag = 0;
|
||||||
strcpy(mes, buff1);
|
strcpy(mes, buff1);
|
||||||
strcat(mes, ip);
|
strcat(mes, ip);
|
||||||
|
strcat(mes, ":");
|
||||||
|
strcat(mes, portC);
|
||||||
strcat(mes, buff2);
|
strcat(mes, buff2);
|
||||||
int port = atoi(portC);
|
int port = atoi(portC);
|
||||||
int cRes;
|
int cRes;
|
||||||
|
@ -12,5 +12,4 @@ extern void _SaveBackupToFile();
|
|||||||
extern char* __cdecl strstri(char *_Str, const char *_SubStr);
|
extern char* __cdecl strstri(char *_Str, const char *_SubStr);
|
||||||
extern char* _getAttribute(char *str, char *attrib);
|
extern char* _getAttribute(char *str, char *attrib);
|
||||||
extern char *_findFirstOcc(char *str, char *delim);
|
extern char *_findFirstOcc(char *str, char *delim);
|
||||||
extern int _SSHLobby(char *ip, int port, conSTR *CSTR);
|
|
||||||
extern void nCleanup();
|
extern void nCleanup();
|
@ -1446,10 +1446,11 @@ int Lexems::_filler(int p, char* buffcpy, char* ip, int recd, Lexems *lx, char *
|
|||||||
if( strstr(buffcpy, "[IGNR_ADDR]") != NULL ) return -1;
|
if( strstr(buffcpy, "[IGNR_ADDR]") != NULL ) return -1;
|
||||||
if( strstr(buffcpy, "SSH-2.0-OpenSSH") != NULL )
|
if( strstr(buffcpy, "SSH-2.0-OpenSSH") != NULL )
|
||||||
{
|
{
|
||||||
|
Connector con;
|
||||||
conSTR CSTR;
|
conSTR CSTR;
|
||||||
CSTR.lowerBuff = NULL;
|
CSTR.lowerBuff = NULL;
|
||||||
CSTR.size = 0;
|
CSTR.size = 0;
|
||||||
int res = _SSHLobby(ip, p, &CSTR);
|
int res = con._SSHLobby(ip, p, &CSTR);
|
||||||
if(res != -1 && res != -2)
|
if(res != -1 && res != -2)
|
||||||
{
|
{
|
||||||
_saveSSH(ip, p, recd, CSTR.lowerBuff);
|
_saveSSH(ip, p, recd, CSTR.lowerBuff);
|
||||||
@ -2017,6 +2018,9 @@ int redirectReconnect(char *cookie, char *ip, int port, char *str, Lexems *ls, P
|
|||||||
strcat(mes, tempPath);
|
strcat(mes, tempPath);
|
||||||
strcat(mes, rbuff2);
|
strcat(mes, rbuff2);
|
||||||
strcat(mes, tempIP);
|
strcat(mes, tempIP);
|
||||||
|
strcat(mes, ":");
|
||||||
|
char tbuff[16] = {0};
|
||||||
|
strcat(mes, itoa(tempPort, tbuff, 10));
|
||||||
if(strlen(cookie) != 0)
|
if(strlen(cookie) != 0)
|
||||||
{
|
{
|
||||||
strcat(mes, rbuff3);
|
strcat(mes, rbuff3);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "msgcheckerthread.h"
|
#include "msgcheckerthread.h"
|
||||||
#include "externData.h"
|
#include "externData.h"
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
void MSGCheckerThread::doEmitionShowNewMsg(QString str)
|
void MSGCheckerThread::doEmitionShowNewMsg(QString str)
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class MSGCheckerThread : public QThread
|
class MSGCheckerThread : public QThread
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "DrawerTh_ME2Scanner.h"
|
#include "DrawerTh_ME2Scanner.h"
|
||||||
#include "DrawerTh_VoiceScanner.h"
|
#include "DrawerTh_VoiceScanner.h"
|
||||||
#include "piestat.h"
|
#include "piestat.h"
|
||||||
#include "resource.h"
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QGraphicsSceneContextMenuEvent>
|
#include <QGraphicsSceneContextMenuEvent>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
#include "irc_nmblinker.h"
|
#include "irc_nmblinker.h"
|
||||||
#include "IRCPinger_Th.h"
|
#include "IRCPinger_Th.h"
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class PieStat : public QThread
|
class PieStat : public QThread
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "nesca_3.h"
|
#include "nesca_3.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class ProgressbarDrawer : public QThread
|
class ProgressbarDrawer : public QThread
|
||||||
{
|
{
|
||||||
|
@ -102,10 +102,10 @@ class Connector
|
|||||||
lopaStr _BALobby(char *cookie, char *ip, int port, char *path, char *method, char *data);
|
lopaStr _BALobby(char *cookie, char *ip, int port, char *path, char *method, char *data);
|
||||||
lopaStr _WFLobby(char *cookie, char *ip, int port, char *methodVal, char *actionVal, char *userVal, char *passVal, char *formVal);
|
lopaStr _WFLobby(char *cookie, char *ip, int port, char *methodVal, char *actionVal, char *userVal, char *passVal, char *formVal);
|
||||||
lopaStr _IPCameraBLobby(char *ip, int port, char *SPEC);
|
lopaStr _IPCameraBLobby(char *ip, int port, char *SPEC);
|
||||||
|
int _SSHLobby(char *ip, int port, conSTR *CSTR);
|
||||||
|
|
||||||
int _EstablishConnection(char *ip, int port, char *request, conSTR *cstr, int force = 0);
|
int _EstablishConnection(char *ip, int port, char *request, conSTR *cstr, int force = 0);
|
||||||
int _EstablishSSLConnection(char *ip, int port, char *request, conSTR *cstr);
|
int _EstablishSSLConnection(char *ip, int port, char *request, conSTR *cstr);
|
||||||
//void _StartRangeFapping(int ipsstart[], int ipsend[], int &cons, char *argv2, ST *st);
|
|
||||||
void _Connect(void *s);
|
void _Connect(void *s);
|
||||||
int _ConnectToPort(char *ip, const char *port, char *hl);
|
int _ConnectToPort(char *ip, const char *port, char *hl);
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "vercheckerthread.h"
|
#include "vercheckerthread.h"
|
||||||
#include "externData.h"
|
#include "externData.h"
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
void _checkVer()
|
void _checkVer()
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "STh.h"
|
#include "STh.h"
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
class VerCheckerThread : public QThread
|
class VerCheckerThread : public QThread
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user