This commit is contained in:
cora32 2015-05-01 18:30:14 +03:00
parent 345d976c6c
commit 68bfe1800c
20 changed files with 270 additions and 1138 deletions

View File

@ -5,6 +5,8 @@
#include "Connector.h" #include "Connector.h"
#include "Utils.h" #include "Utils.h"
int CheckKey_Th::isActiveKey = -1;
void getSubStrEx(const char *src, char *startStr, char *endStr, char *dest, int szDest) void getSubStrEx(const char *src, char *startStr, char *endStr, char *dest, int szDest)
{ {
ZeroMemory(dest, szDest); ZeroMemory(dest, szDest);
@ -69,6 +71,7 @@ int KeyCheckerMain()
if(Utils::ustrstr(buffer, std::string("202 Accepted")) != -1) { if(Utils::ustrstr(buffer, std::string("202 Accepted")) != -1) {
stt->doEmitionGreenFoundData("Key is valid."); stt->doEmitionGreenFoundData("Key is valid.");
CheckKey_Th::isActiveKey = 1;
if(emitIfOK == 0) stt->doEmitionStartScanIP(); if(emitIfOK == 0) stt->doEmitionStartScanIP();
else if(emitIfOK == 1) stt->doEmitionStartScanDNS(); else if(emitIfOK == 1) stt->doEmitionStartScanDNS();
else if(emitIfOK == 2) stt->doEmitionStartScanImport(); else if(emitIfOK == 2) stt->doEmitionStartScanImport();

View File

@ -6,6 +6,7 @@
extern int emitIfOK; extern int emitIfOK;
class CheckKey_Th : public QThread class CheckKey_Th : public QThread
{ {
public: static int isActiveKey;
Q_OBJECT Q_OBJECT
protected: protected:

View File

@ -4,14 +4,6 @@
bool HikVis::isInitialized = false; bool HikVis::isInitialized = false;
void HikVis::hikInit(){
//hik_init_ptr();
}
void HikVis::hikCleanup(){
//hik_cleanup_ptr();
}
lopaStr HikVis::hikLogin(const char * sDVRIP, int wDVRPort) lopaStr HikVis::hikLogin(const char * sDVRIP, int wDVRPort)
{ {
lopaStr lps = { "UNKNOWN", "", "" }; lopaStr lps = { "UNKNOWN", "", "" };

View File

@ -10,13 +10,6 @@ public: static bool isInitialized;
private: lopaStr hikLogin(const char * sDVRIP, int wDVRPort); private: lopaStr hikLogin(const char * sDVRIP, int wDVRPort);
public: public:
HikVis(){
hikInit();
}
~HikVis(){
hikCleanup();
}
void hikInit(); void hikInit();
void hikCleanup(); void hikCleanup();
lopaStr HVLobby(const char *ip, const int port); lopaStr HVLobby(const char *ip, const int port);

View File

@ -416,7 +416,12 @@ void MainStarter::saveBackupToFile()
sprintf(saveStr, "[SESSION]:%d RESTORE_IMPORT_SESSION %d %s\n", gMode, gThreads, gPorts); sprintf(saveStr, "[SESSION]:%d RESTORE_IMPORT_SESSION %d %s\n", gMode, gThreads, gPorts);
strcat(saveBuffer, saveStr); strcat(saveBuffer, saveStr);
ZeroMemory(saveStr, sizeof(saveStr)); ZeroMemory(saveStr, sizeof(saveStr));
}; }
else {
sprintf(saveStr, "[SESSION]: 0 1.1.1.1/32 0 -p80");
strcat(saveBuffer, saveStr);
ZeroMemory(saveStr, sizeof(saveStr));
}
sprintf(saveStr, "[NDBSERVER]:%s\n", trcSrv); sprintf(saveStr, "[NDBSERVER]:%s\n", trcSrv);
strcat(saveBuffer, saveStr); strcat(saveBuffer, saveStr);
@ -1283,18 +1288,23 @@ void MainStarter::runAuxiliaryThreads() {
} }
} }
void MainStarter::start(const char* targets, const char* ports) { void MainStarter::createResultFiles() {
curl_global_init(CURL_GLOBAL_ALL);
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
bool res = CreateDirectoryA(RESULT_DIR_NAME, NULL); bool res = CreateDirectoryA(RESULT_DIR_NAME, NULL);
if(!res) stt->doEmitionRedFoundData("Failed to crete results.");
#else #else
struct stat str = { 0 }; struct stat str = { 0 };
if (stat(RESULT_DIR_NAME, &str) == -1) { if (stat(RESULT_DIR_NAME, &str) == -1) {
mkdir(RESULT_DIR_NAME, 0700); mkdir(RESULT_DIR_NAME, 0700);
} }
#endif #endif
}
void MainStarter::start(const char* targets, const char* ports) {
curl_global_init(CURL_GLOBAL_ALL);
createResultFiles();
if (loadTargets(targets) == -1 || if (loadTargets(targets) == -1 ||
loadPorts(ports, ',') == -1) { loadPorts(ports, ',') == -1) {

View File

@ -104,6 +104,7 @@ public:
void saver(); void saver();
void saveBackupToFile(); void saveBackupToFile();
int fileLoader(const char *fileName); int fileLoader(const char *fileName);
static void createResultFiles();
void start(const char* targets, const char* ports); void start(const char* targets, const char* ports);
}; };

View File

@ -5,7 +5,7 @@
#include <qjsonarray.h> #include <qjsonarray.h>
#define RECV_MAX_SIZE 350000 #define RECV_MAX_SIZE 350000
#define REQUEST_MAX_SIZE 4096 #define REQUEST_MAX_SIZE 4096
#define PORTSET "80,81,88,8080,8081,60001,60002,8008,8888,554,9000,441,4111,6667,3536,22,21" #define PORTSET "80,81,88,8080,8081,60001,60002,8008,8888,554,9000,3536,21"
#define CSSOCKET(Socket) shutdown(Socket, SD_BOTH); closesocket(Socket); Socket = -1; #define CSSOCKET(Socket) shutdown(Socket, SD_BOTH); closesocket(Socket); Socket = -1;
#ifndef CP_UTF8 #ifndef CP_UTF8

View File

@ -719,6 +719,7 @@ void fputsf(char *text, int flag, char *msg)
else else
{ {
stt->doEmitionRedFoundData("Cannot open file [FLAG: " + QString::number(flag) + "] " + QString::number(GetLastError())); stt->doEmitionRedFoundData("Cannot open file [FLAG: " + QString::number(flag) + "] " + QString::number(GetLastError()));
MainStarter::createResultFiles();
}; };
} }

View File

@ -1,35 +0,0 @@
admin
root
123123
123456
support
12345
cisco
super
meinsm
monitor
test
ftp
1234
administrator
qwerty
recovery
Polycom
system
naadmin
telecom
dreambox
master
Admin
guest
backup
cgadmin
0000
1111
666666
888888
777777
555555
111222333
ubnt

View File

@ -41,9 +41,13 @@ void _getNewMsg()
void MSGCheckerThread::run() void MSGCheckerThread::run()
{ {
for(;;) if (!msgChkRunnning) {
for (;;)
{ {
msgChkRunnning = true;
if (strlen(trcPersKey) != 0) _getNewMsg();
else { mct->doEmitionShowNewMsg(QString("No key detected.")); }
Sleep(60000); Sleep(60000);
if(strlen(trcPersKey) != 0) _getNewMsg();
}; };
}
} }

View File

@ -6,6 +6,7 @@
class MSGCheckerThread : public QThread class MSGCheckerThread : public QThread
{ {
private: bool msgChkRunnning = false;
Q_OBJECT Q_OBJECT
public: public:
static void doEmitionShowNewMsg(QString str); static void doEmitionShowNewMsg(QString str);

View File

@ -1,911 +1 @@
Benvenuti!
ssl vpn
Ref1=http
hello. goodbye.
Analog Telephone Adapter
IP Dect -
AnyGate
Unable to open
WebDAV
Ruckus Wireless
Access is denied
access denied
Company Limited
àðåíäà ñåðâ
首页
51yes.com
nasne&trade
google-site-verification
áåñïëàòíûé õîñò
àíòèâèðóñ
403 forbidden
êóïèòü
X-Adblock-Key
エラー
pagerror
Error report
電話
reserveer
kontakt
ñàéò âðåìåí
ãàðàíò
ïàðê
òåëåêîì
ðåãèñòðàöèÿ
íåäîñòóïåí
document.cookie
park
You are not permitted
Adapto CMS
Account unavailable
áàëàíñ
ñðåäñòâ
íà âàøåì ñ÷åòó
àáîíåíò
xml-not-well-formed
No session
validator.w3.org
RFB 009
00;39;49mroot:
Authorization Required
.swf
ïîêóï
yadro.ru
liveinternet
DIR-100
DIR-615
DIR-140
session_login.php?reload=1
Firewall Authentication required before
Piolink Web
You are not welcome to use
Permission error
sample.org
421 FTP connection refused
No HTTP resource was found
RTDVR ActiveX
D-RMS
command not understood
baZsDJAabybWQby
report abuse
atwiki
studio
McMyAdmin
500 Syntax error
Starting WebDVR
530 Connection refused
I can break rules, too
this system is engaged
Aviso de Bloqueio
Servico nao disponivel
Content-Encoding: gzip
no connections allowed
pocket-solution
trustclick
òîðã
prelogin
service temporarily unavailable
service is temporary unavailable
service unavailable
403 - forbidden
is still available
php framework
BlueBean
Herzlich
Web-Based Configurator
Willkommen!
Error 503
not found
504 gateway timeout
Defaultpage
500 internal server error
500 - internal server error
502 bad gateway
505 http version
501 not implemented
invalid hostname
http error 400
400 ERROR
include_path=
function.require
failed to open stream
"./cgi-bin/start.cgi?UID=-1&TEMP="
408 request time-out
421 service not available
500 OOPS
Comming Soon
is sample html
/js/thickbox.js
google_ad_slot
plone
openmail
You don't have permission
institute
google-analytics.com
googlesyndication
temporarily offline
temporarily unavailable
MELOOK
&gt;log in
.js_check.html
/about-our-site.html
/auth.
/acquittal.html
/building.html
/cart/view
/catalog/search.php
/cgi-bin/welcome.cgi
/welcome/
application/x-shockwave-flash
/customer
e-Learn
/esi.cgi?page=status-index.xml
/guarantee
.ac.jp
/html/index.asp
/iisstart.asp
/images/final-hp
/install.php
/kontakty
/manga/index.cgi
/manual/
/order
/privacy
/news
/portal-login
/product.php
/rpauth.html
/servlet/wap/login
site introuvable
shop
sell
test server
/company
/brand
/signin
/simple.html
/soap/
/support/
/terms
/ui/
/user/index.php
/weblogin.htm
/xampp/
/zimbra
:5000/
?hipname=
@bk.ru
@gmail.com
@inbox.ru
@list.ru
@mail.ru
@rambler.ru
@yandex.ru
+home_42+
+i1+
+vt_docsystem+
16 ch
a test web page
clinic
museum
It's works
Adobe GoLive
Remote Link2
about/
aboutus
about-us
about us
acceso denegado
acceso sistema
access the sharecenter
actiontec_bottom
adsense
afrekenen
ahcom tecnologia
alfresco
app service
apache_pb.gif
airties
aktualizacji
amicaweb
Alan Ad?
and supervision tool
annex b
apache http server test
apache software foundation
apache tomcat
apache ha sido instalado
application manager
apteka
arteco ivs spa
at&t
at-img634
autenticacao de acesso
auto_detect_lang.asp
aviso legal
backgroundimagecache
bad request
baidu
beratung
berneck
btnLive
business invest
best domain names
bitrix
bluedragon
blog
blog/about/
blog/comments/
bubba|2
buffalo inc
buy
cable modem
cafe
call us
calorie
cannot be displayed
cannot find
ccnwebsrvcontroller
church
canopy
casino
cautivo
check_hj.html
check_user_agent
checking javascript support
checking language
checkpoint.com
cheditor
chiliproject
check availability
citrix/xenapp
client
cloud
cmside.htm
company.
comcast business
coming soon
commercial property
configuration manager
configuration file does not
confixx
construcci
consulta
contac
come back later
contat
control de inventarios
control de solicitudes
controles de acceso
currently unavailable
cooking
coltd
co.ltd
co.,ltd
#QNAP shit
could be ipv6 addr
cp-gateway
create an account
create new account
credit
currently measuring
currently unreachable
cs3 dreamweaver
FrontPage
TESTPAGE
Too many connections
BB-HGW
OS X Lion
Inspire DVR
DVR Components Download
Homepage Builder
dashboard.css
dating
dbox
de iis
design house
de subsidios
de turismo
default page
default parallels plesk panel
default plesk page
default web
defaultwebpage
desserts
default-site
development company
development work
device configuration
default index file
dgc hotspot
dishes
docsis
docsis_system.asp
dominio
domain error
domain has been blocked
domain has been registered
domain name registration
domain registered
domainapps.com
domeny
domeingeregistreerd
down for maint
draytek corp
dreambox webcontrol
drupal
Dreamweaver MX
due to maintance
dsnextgen.com
DATA LAN DISK
TEST SITE
eap web interface
echolife
ediciones tierrazul
elipgo
emta settings
en construction
enigin plc
enigma web interface
entertainment
equipe ahcom
erro ao resolver
The requested URL
error.asp
empty page
errors.umi-cms.ru
e-trayz
evaluaciones
exchange/
ezwatch pro
education
fax
fax.
fax:
fax :
fashion
Fireworks MX
fast35xx
facebook
football
forex
forgot password
free delivery
free to play
freepbx
free-shipping
fritz!box
functioning normally
future home of
gaiyou
glassfish server
globesurfer
gmbh
industrial
help.html
market
guarantee
h.264
h264
hc.ru
hectrix ltd
hipname
hipoteka
hitron technologies
holding page
holding_page
home gateway
home.
hosting
hostline.ru
help desk
hotspot login
htmlanvview:
icecast2
ie-plugin
iis7
iis8
images/spacer.jpg
images/ub15.gif
in construction
index.cgi?active
index.php?action=login
info experts
information services 8
ingrese usuario
inicio
initservicecookie
inloggen
insurance
intelligent digital security system
into the public_html directory
invalid url
iomega
iis windows
customer
is functioning normally
is under construction
ispmanager control panel
it work
error404
404err
error500
500err
407 Proxy
ibm websphere
is now configured
is currently undergoing
jbossweb
join us
joinmember
juniper
jste heslo
kerio connect
keyhole peeks
kablosuz
kloxo control panel
kontakt
kredyt
lacie nas
latest tweets
legal policies
log_off_page.htm
login page
login para acesso
logistics
lvrweb
epanel
commerc
official website
WebFig
in manutenzione
Domain is not authorized
in costruzione
mail_manager
magnesium
management console
mbanking
olaHola
Wireless N ADSL
Account Suspended
Session limit reached
Aethra
meble
microsoft exchange
mijn account
mobile phone was detected
mobile web viewer
mobile_viewer_login
mobile login
modem (administrator
m&w
munin
my account
my cart
my homepage
myauth
navatom
navigate to public landing page
netdvrv
netsafe utm
netsurveillance
nettalk
netvideo
newocx
nicht aufgeschaltet
no web site
no site on this
nothing to see
nothing here
not authorized to view
nuuo network video recorder
nuuo web
ntt docomo
nvr
no longer available
o nas
obs-helper/menu.jsp
official site
olvido su password
oncell warning
one time payment
one web server
Welcome to nginx
online dating
online store
oracle application server
our partners
outlook web
oma domain
on varattu
opening soon
openwebmail
Directory Listing Denied
page=about
pagos
CodeIgniter
parkerad
paradox ip module
parallels confixx
parallels operations automation default
parent.location=
partners
paypal
pharmacy
phone system
phpmyadmin
pills
place holder
placeholder
plakaty
platinbox
please login
plesk
poker
polycom '+model
por internet
portada
portal de
postinfo.html
price
prikol
privacy policies
virtual private server
pro-agro apm
produc
produtos
symfony-project
professions
sonicwall
promo
product_id
presentation page
qnap turbo nas
Qloud Server
read more
redirect server
redmine
reserviert
reg.demos.ru
register now
registrato
register your domain
registrarse
reklam
related searches
relatives
relaxcms.com
remote access controller
remote monitoring system
remote video surveillance
reserved domain
residential gateway login
restaurant
redevelopment
rpauth.html
rpsys.html
ruby on rails
ru-center
rss buddy
roundcube
s.r.l.
sakura internet
sabnzbd
samsung digital
sapphire journal
sbuilder.ru
scam_2nd.sis
search.
searchnut.com
searchpage.aspx
searchremagnified
secure login page
securepaynet
selectkind.html
server application error
server default page
servicio
shared ip
sign in now
silverlight
sistema fenix
sistemas
site offline
site_manager
site just created
sitemap
site is not
site_map
saitmap
stay tuned
sitio no encontrado
software is running
skidki
skip intro
small business
smart switch login
smartermail
snom
sign up
sonicwall - authentication
spa configuration
speed test
speedtouch
sport
skype:
src/login.php
ssl-vpn/login.esp
standalone dvr
statcounter
status.stm
strona w przygotowaniu
subsonic
sugarcrm
sun java system
workplace
workspace
Under Constraction
Mobile NAS Router
sunny webbox
supporto
strona w konstrukcji
surgeblog
Apache Error
suspended domain
suspendedpage
switch administrator
sww link
synology
taobao
TopPageFinder.com
Sun Microsystems, Inc
421 Service is unavailable
Echo Service
CareerVision
teamportal
teamviewer
AW+ GUI Applet
Technotree Web
SI-TEC
desknet
technical support
teles.igate
tellion
tell
tell.
TEL(
fax(
Web Management Login
IBM HTTP Server
no server available
tell:
tell :
tel/
fax/
tel
tel.
tel :
tel:
tel?
tel ?
tel)
AirLibro
fax?
fax ?
termos de uso
TP-LINK Wireless
RT-N
RT-G
dir320
underconstr
test page
has been banned
the best place
the best search
the leading
the page is not
the web server is running
this object has moved
this website is not configured
thomson gateway
to log in
tomza
touchstone status
townet 108-30-su
tralix
transfervolumen
trixbox
try again later
tutorial
twitter
Tlf.
mailto:
WJND300
Home Page
temporar in mentenanta
under maintanence
under-construction
under construct
under development
under konstruktion
under maintenance
unimep station controller
unsub pag
upnp devices
url could not be retrieved
unohditko salasanan
value domain
verizon
verwaltungskonsole
viagra
visualsvn
voice-over-ip
voip gateway
voip web
velkommen
vood
visit us
varaa itsellesi
w@de
wade
web applications
web console
web device manager
web frontend
web hosting
web remote access
web server setup guide
web site creator
webage unavailable
website does not exist
web-based configurator
webcamx
webconfig
webcontrol
webguard login
webrom
website is currently
webui administration
webview
webmail
welcome.do
web development
wimax
window.location = "/ui"
windows home server
windows server
windows small business server
winkelwagen
wordpress
wowza
www.microsoft.com
www.ibm.com
www.lacie.com
www.sedo.com
xenserver
CommuniGate Pro
MACROSCOP
Áóõãàëòåð
áþäæåò
Welcome to WildFly
Welcome to jboss
VoIP Router
Can't connect to
xfinity
ñòðîé
ñòðîèò
VoIP Telephone
This site requires JavaScript
xtreamer
yahoo
you are not logged in
your explorer is no support frame
your website
yweb
wkrotce
àçàðòíûå èãðû
àêêîðäû
àíåêäîò
àïòåê
àðõèâ íîâîñòåé
â ñòàäèè ðàçðàáîòêè
â ðàçðàáîòêå
ôèëüì
film
Íå óäàåòñÿ îòîáðàçèòü ñòðàíèöó
page does not exist
ïðàâà çàùèùåíû
äà÷
äåøåâ
äåø¸â
pm2-web
äîñòàâêà
çàêàç
öåíà
çàðàáîòîê â ñåòè
çíàêîìñòâà
èñòåê ñðîê
êàðèêàòóð
êîíêóðñ
êîíòàêòû
êóõíè
ãëàâíàÿ ñòðàíèöà
ëè÷íûé êàáèíåò
ëîòåðå
ìåæäóíàðîäí
ìîäà
ìû ïðåäîñòàâëÿåì
íà ðåêîíñòðóêöèè
ïîçæå
íàéòè ðàáîòó
íàõîäèòñÿ â ðàçðàáîòêå
íàø áàííåð
êîìïàíè
íèçêèå öåíû
Íåêîððåêòíûé URL
Íåâîçìîæíî ïîäêëþ÷èòüñÿ
íîâûé àäðåñ
ìàãàç
î íàñ
îñòåâ
ïàðòíåðê
ïåðåâîä òåêñòîâ
ïåðååõà
ïåðñîíàëüíûé ñàéò
ïèøè
ïîäåðæàí
îòêëþ÷åí
ïðîôèëàêòè÷åñêèå ðàáîòû
âðåìåííûå íåóäîáñòâà
Íåâåðíûé êëþ÷
Seo
ïîäïèñàòüñÿ
ïîèñê ðàáîòû
ïðèêîë
ïðîäóêöèÿ
ïðîèçâîäñòâ
ïðîöåñ³ ðîçðîáêè
ðàáîòà â èíòåðíåòå
ðåãèñòðàöèè äîìåííûõ
ðåêëàìíûå ññûëêè
ðåìîíò
ñàéò â ðàçðàáîòêå
ñàéò íåäîñòóïåí
ñàéò êëàíà
ñêîðî çàïóñòèòñÿ
ñàéò íà ðàçðàáîòêå
ñâÿçü ñ íàìè
ñêèäê
ðàñêðóò
ñêîðî îòêðûòèå
ñëóæáà ïîääåðæêè
ñîçäàíèå íåäîðîãèõ ñàéòîâ
ñîçäàíèå ñàéòîâ
ñïîíñîðû
ñòàðòîâàÿ ñòðàíè
ñòèõè
òåñòîâàÿ ñòðàíè
òåõíè÷åñêèå ðàáîòû
óñëóãè
ôëåøêè
îøèáêà
íà õîñòèíãå
Fatal error:
mc.yandex.ru
UNKNOWN HOST
Ñàéò çàêðûò
?partner
õîêêå
äîáðî ïîæàëîâàòü â
ñòàòóñû
âûñêàçûâàíè
ôëýøêè
ôóòáîë
þìîð
íîâîñòè
íà ðåêîíñòðóêöèè
îáíîâëåíèå ñàéòà
îôèñ
þðèäè÷
ñòðàíèöà íå íàéäåíà
ïðîäà

View File

@ -17,6 +17,17 @@
#include "progressbardrawer.h" #include "progressbardrawer.h"
#include "FileDownloader.h" #include "FileDownloader.h"
#include "HikvisionLogin.h" #include "HikvisionLogin.h"
#include <QCryptographicHash>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <iterator>
#include <iomanip>
#include <IPTypes.h>
#include <intrin.h>
#include <string>
#include <sstream>
#include <iomanip>
NET_DVR_Init hik_init_ptr = NULL; NET_DVR_Init hik_init_ptr = NULL;
NET_DVR_Cleanup hik_cleanup_ptr = NULL; NET_DVR_Cleanup hik_cleanup_ptr = NULL;
@ -131,7 +142,76 @@ QVector<qreal> dotsThreads;
QFont multiFontSmallFontPie; QFont multiFontSmallFontPie;
QFont multiFontSmallFontArc; QFont multiFontSmallFontArc;
int psh_lul(PIP_ADAPTER_INFO zzaza)
{
int chc = 0;
for (int i = 0; i < zzaza->AddressLength; i++) chc += (zzaza->Address[i] << ((i & 1) * 8));
return chc;
}
void hshjNune(int& mac1, int& mac2)
{
IP_ADAPTER_INFO idrigenopho[32];
DWORD dwBufLen = sizeof(idrigenopho);
DWORD dwStatus = GetAdaptersInfo(idrigenopho, &dwBufLen);
if (dwStatus != ERROR_SUCCESS) return;
PIP_ADAPTER_INFO pidrigenopho = idrigenopho;
mac1 = psh_lul(pidrigenopho);
if (pidrigenopho->Next) mac2 = psh_lul(pidrigenopho->Next);
}
int hsh_hsh()
{
DWORD psm = 0;
GetVolumeInformation(L"C:\\", NULL, 0, &psm, NULL, NULL, NULL, 0);
int ypyp = (int)((psm + (psm >> 16)) & 0xFFFF);
return ypyp;
}
const char* fds_gds()
{
static char computerName[1024];
DWORD size = 1024;
GetComputerName((LPWSTR)computerName, &size);
static char cn[1024];
for (int i = 0, j = 0; i < 512; i += 2, ++j) memset(cn + j, computerName[i], 1);
return cn;
}
std::string grgNun() {
DWORD Type;
char value[64] = { 0 };
HKEY hkey;
if (RegOpenKey(HKEY_LOCAL_MACHINE,
TEXT("Software\\ISKOPASI\\nesca3\\jipjip"), &hkey) == ERROR_SUCCESS)
{
DWORD value_length = 256;
RegQueryValueEx(hkey, L"nepnep", 0, &Type, (BYTE*)&value, &value_length);
RegCloseKey(hkey);
}
std::string rNepnep = std::string(value);
return rNepnep;
}
std::string ypypNunu()
{
int fafa1, faf2;
hshjNune(fafa1, faf2);
int d2 = hsh_hsh();
char fds[1024] = { 0 };
strcpy(fds, fds_gds());
const std::string resNunu = std::to_string(fafa1) + "-"
+ std::to_string(d2) + "-" + std::string(fds) + "-"
+ std::string(trcPersKey);
std::ostringstream strNunu;
strNunu << std::setw(2) << std::setfill('0') << std::hex << std::uppercase;
std::copy(resNunu.begin(), resNunu.end(), std::ostream_iterator<unsigned int>(strNunu, ""));
return strNunu.str();
}
void _LoadPersInfoToLocalVars(int savedTabIndex) { void _LoadPersInfoToLocalVars(int savedTabIndex) {
ZeroMemory(trcPersKey, sizeof(trcPersKey));
strncpy(trcPersKey, ui->linePersKey->text().toLocal8Bit().data(), 32);
memset(trcPersKey + 32, '\0', 1);
ZeroMemory(currentIP, sizeof(currentIP)); ZeroMemory(currentIP, sizeof(currentIP));
ZeroMemory(finalIP, sizeof(finalIP)); ZeroMemory(finalIP, sizeof(finalIP));
ZeroMemory(gPorts, sizeof(gPorts)); ZeroMemory(gPorts, sizeof(gPorts));
@ -1305,38 +1385,6 @@ void nesca_3::switchToJobMode()
}; };
} }
void nesca_3::CheckPersKey()
{
emitIfOK = -1;
saveOptions();
if(!chKTh->isRunning())
{
stt->doEmitionYellowFoundData("[Key check] Starting checker thread...");
chKTh->start();
}
else
{
stt->doEmitionRedFoundData("Still ckecking your key, please wait...");
};
}
void nesca_3::CheckPersKey(int val = -1)
{
emitIfOK = val;
saveOptions();
if(!chKTh->isRunning())
{
stt->doEmitionYellowFoundData("[Key check] Starting checker thread...");
chKTh->start();
}
else
{
stt->doEmitionRedFoundData("Still ckecking your key, please wait...");
};
}
bool nesca_3::eventFilter(QObject* obj, QEvent *event) bool nesca_3::eventFilter(QObject* obj, QEvent *event)
{ {
if (obj == qwm) if (obj == qwm)
@ -2334,6 +2382,9 @@ void RestoreSession()
} }
setUIText("[MAXBTHR]:", ui->maxBrutingThrBox, resStr); setUIText("[MAXBTHR]:", ui->maxBrutingThrBox, resStr);
setUIText("[PERSKEY]:", ui->linePersKey, resStr); setUIText("[PERSKEY]:", ui->linePersKey, resStr);
ZeroMemory(trcPersKey, sizeof(trcPersKey));
strncpy(trcPersKey, resStr, 32);
memset(trcPersKey + 32, '\0', 1);
setUIText("[SYSTEMPROXYIP]:", ui->systemProxyIP, resStr); setUIText("[SYSTEMPROXYIP]:", ui->systemProxyIP, resStr);
setUIText("[SYSTEMPROXYPORT]:", ui->systemProxyPort, resStr); setUIText("[SYSTEMPROXYPORT]:", ui->systemProxyPort, resStr);
@ -2513,7 +2564,7 @@ void nesca_3::startScanButtonClicked()
{ {
if(ui->linePersKey->text().size() != 0) if(ui->linePersKey->text().size() != 0)
{ {
CheckPersKey(0); CheckPersKey();
} }
else else
{ {
@ -2569,7 +2620,7 @@ void nesca_3::startScanButtonClickedDNS()
{ {
if(ui->linePersKey->text().size() != 0) if(ui->linePersKey->text().size() != 0)
{ {
CheckPersKey(1); CheckPersKey();
} }
else else
{ {
@ -2626,7 +2677,7 @@ void nesca_3::importAndScan()
{ {
if (ui->linePersKey->text().size() != 0) if (ui->linePersKey->text().size() != 0)
{ {
CheckPersKey(2); CheckPersKey();
} }
else else
{ {
@ -2876,6 +2927,8 @@ void nesca_3::appendErrText(QString str)
}; };
} }
void nesca_3::appendOKText(QString str) void nesca_3::appendOKText(QString str)
{ {
ui->dataText->append("<span style=\"color:#06ff00;\">[" + QTime::currentTime().toString() + "][OK] " + str + "</span>"); ui->dataText->append("<span style=\"color:#06ff00;\">[" + QTime::currentTime().toString() + "][OK] " + str + "</span>");
@ -2937,6 +2990,7 @@ QString GetColorCode(int mode, QString str)
return result; return result;
} }
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
void enableHikvisionSupport(){ void enableHikvisionSupport(){
HINSTANCE hGetProcIDDLL = LoadLibrary(L".\\HCNetSDK.dll"); HINSTANCE hGetProcIDDLL = LoadLibrary(L".\\HCNetSDK.dll");
@ -2970,7 +3024,122 @@ void enableHikvisionSupport(){
HikVis::isInitialized = true; HikVis::isInitialized = true;
stt->doEmitionGreenFoundData("Hikvision support enabled."); stt->doEmitionGreenFoundData("Hikvision support enabled.");
} }
#endif
void nesca_3::finishLoading() {
CreateVerFile();
dtHN->start();
dtME2->start();
adtHN->start();
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
WSADATA wsda;
if (WSAStartup(0x0101, &wsda))
{
stt->doEmitionRedFoundData("WSAStartup failed.");
qApp->quit();
};
#endif
//std::thread fuThread(FileDownloader::checkWebFiles);
//fuThread.detach();
_startVerCheck();
_startMsgCheck();
qrp.setMinimal(true);
drawVerboseArcs(0);
//[5.39.163.202] 8000 (? ) open
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
enableHikvisionSupport();
#endif
}
bool nesca_3::CheckPersKeyMain()
{
saveOptions();
QString y = QString(QCryptographicHash::hash((ypypNunu().c_str()), QCryptographicHash::Md5).toHex());
QString nu(grgNun().c_str());
if (y.compare(nu) == 0) {
MainStarter m;
m.saveBackupToFile();
if (!chKTh->isRunning())
{
stt->doEmitionYellowFoundData("[Key check] Starting checker thread...");
chKTh->start();
while (CheckKey_Th::isActiveKey == -1) Sleep(10);
if (CheckKey_Th::isActiveKey == 1) return true;
else {
stt->doEmitionYellowFoundData("== Invalid key. ==");
HKEY hkey;
DWORD dwDisposition;
if (RegCreateKeyEx(HKEY_LOCAL_MACHINE,
TEXT("Software\\ISKOPASI\\nesca3\\jipjip"),
0, NULL, 0,
KEY_WRITE, NULL, &hkey, &dwDisposition) == ERROR_SUCCESS)
{
RegSetValueEx(hkey, L"nepnep", 0, REG_BINARY, (BYTE*)"0", 2);
RegSetValueEx(hkey, L"jipjip", 0, REG_BINARY, (BYTE*)"0", 2);
RegCloseKey(hkey);
}
Sleep(2000);
qApp->quit();
}
}
else stt->doEmitionRedFoundData("Still ckecking your key, please wait...");;
}
else {
stt->doEmitionYellowFoundData("== Invalid key. ==");
Sleep(2000);
qApp->quit();
}
return false;
}
void nesca_3::CheckPersKey()
{
saveOptions();
QString y = QString(QCryptographicHash::hash((ypypNunu().c_str()), QCryptographicHash::Md5).toHex());
QString nu(grgNun().c_str());
if (y.compare(nu) == 0) {
MainStarter m;
m.saveBackupToFile();
if (!chKTh->isRunning())
{
stt->doEmitionYellowFoundData("[Key check] Starting checker thread...");
chKTh->start();
while (CheckKey_Th::isActiveKey == -1) Sleep(10);
if (CheckKey_Th::isActiveKey == 1) finishLoading();
else {
stt->doEmitionYellowFoundData("== Invalid key. ==");
HKEY hkey;
DWORD dwDisposition;
if (RegCreateKeyEx(HKEY_LOCAL_MACHINE,
TEXT("Software\\ISKOPASI\\nesca3\\jipjip"),
0, NULL, 0,
KEY_WRITE, NULL, &hkey, &dwDisposition) == ERROR_SUCCESS)
{
RegSetValueEx(hkey, L"nepnep", 0, REG_BINARY, (BYTE*)"0", 2);
RegSetValueEx(hkey, L"jipjip", 0, REG_BINARY, (BYTE*)"0", 2);
RegCloseKey(hkey);
}
Sleep(2000);
qApp->quit();
}
}
else stt->doEmitionRedFoundData("Still ckecking your key, please wait...");;
}
else {
stt->doEmitionYellowFoundData("== Invalid key. ==");
Sleep(2000);
qApp->quit();
}
}
nesca_3::nesca_3(QWidget *parent) : QMainWindow(parent) nesca_3::nesca_3(QWidget *parent) : QMainWindow(parent)
{ {
@ -3018,36 +3187,27 @@ nesca_3::nesca_3(QWidget *parent) : QMainWindow(parent)
ui->logoLabel->setStyleSheet("color:white; border: none;background-color:black;"); ui->logoLabel->setStyleSheet("color:white; border: none;background-color:black;");
ui->newMessageLabel->setStyleSheet("color:rgba(255, 0, 0, 0);background-color: rgba(2, 2, 2, 0);"); ui->newMessageLabel->setStyleSheet("color:rgba(255, 0, 0, 0);background-color: rgba(2, 2, 2, 0);");
CreateVerFile();
RestoreSession(); RestoreSession();
dtHN->start(); QString y = QString(QCryptographicHash::hash((ypypNunu().c_str()), QCryptographicHash::Md5).toHex());
dtME2->start(); QString nu(grgNun().c_str());
adtHN->start(); if (y.compare(nu) != 0) {
ui->tabMainWidget->setTabEnabled(0, false);
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) ui->tabMainWidget->setTabEnabled(1, false);
WSADATA wsda; ui->tabMainWidget->setTabEnabled(2, false);
if (WSAStartup(0x0101, &wsda)) stt->doEmitionYellowFoundData("== Enter your personal key, please. ==");
{ }
stt->doEmitionRedFoundData("WSAStartup failed."); else {
ui->tabMainWidget->setTabEnabled(0, true);
ui->tabMainWidget->setTabEnabled(1, true);
ui->tabMainWidget->setTabEnabled(2, true);
if(CheckPersKeyMain()) finishLoading();
else {
stt->doEmitionYellowFoundData("== Invalid key. ==");
Sleep(2000);
qApp->quit(); qApp->quit();
}; };
#endif }
std::thread fuThread(FileDownloader::checkWebFiles);
fuThread.detach();
_startVerCheck();
_startMsgCheck();
qrp.setMinimal(true);
drawVerboseArcs(0);
//[5.39.163.202] 8000 (? ) open
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
enableHikvisionSupport();
#endif
} }
nesca_3::~nesca_3() nesca_3::~nesca_3()

View File

@ -75,7 +75,7 @@ protected:
void slotDrawVoiceGrid(int factor); void slotDrawVoiceGrid(int factor);
void slotDrawTextPlacers(); void slotDrawTextPlacers();
void CheckPersKey(); void CheckPersKey();
void CheckPersKey(int val); bool CheckPersKeyMain();
void slotRestoreDefPorts(); void slotRestoreDefPorts();
void switchToJobMode(); void switchToJobMode();
void switchDataFields(); void switchDataFields();
@ -116,6 +116,7 @@ protected:
void appendRedBAData(QString str); void appendRedBAData(QString str);
void STTTerminate(); void STTTerminate();
void drawVerboseArcs(unsigned long gTargets); void drawVerboseArcs(unsigned long gTargets);
void finishLoading();
void slotBlockButtons(bool value); void slotBlockButtons(bool value);
private: private:
QPoint dragPosition; QPoint dragPosition;

View File

@ -97,7 +97,7 @@
<enum>QTabWidget::Rounded</enum> <enum>QTabWidget::Rounded</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>3</number>
</property> </property>
<property name="elideMode"> <property name="elideMode">
<enum>Qt::ElideMiddle</enum> <enum>Qt::ElideMiddle</enum>
@ -115,6 +115,9 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<widget class="QWidget" name="tab_4"> <widget class="QWidget" name="tab_4">
<property name="enabled">
<bool>false</bool>
</property>
<attribute name="title"> <attribute name="title">
<string>IP Scan</string> <string>IP Scan</string>
</attribute> </attribute>
@ -395,6 +398,9 @@
</widget> </widget>
</widget> </widget>
<widget class="QWidget" name="tab_5"> <widget class="QWidget" name="tab_5">
<property name="enabled">
<bool>false</bool>
</property>
<attribute name="title"> <attribute name="title">
<string>DNS Scan</string> <string>DNS Scan</string>
</attribute> </attribute>
@ -706,6 +712,9 @@
</widget> </widget>
</widget> </widget>
<widget class="QWidget" name="tab_6"> <widget class="QWidget" name="tab_6">
<property name="enabled">
<bool>false</bool>
</property>
<attribute name="title"> <attribute name="title">
<string>Import</string> <string>Import</string>
</attribute> </attribute>

View File

@ -1,59 +0,0 @@
root
admin
password
123456
1234
12345
ADMIN
cisco
ftp
ROOT
123123
pass
passwd
qwerty
meinsm
monitor
user
support
test
sysadm
admin123
Admin
123321
12344321
toor
qwerty123
1q2w3e4r
987654321
system
telecom
dreambox
111111
1111
654321
!@#$%^
0000
000000
master
12345678
666666
888888
777777
555555
111222333
123123123
123454321
0123456789
qqqqqq
administrator
sys
guest
backup
fujiyama
super
P@ssw0rd
passw0rd
ubnt

View File

@ -1,27 +0,0 @@
hw230f8034t:17932yhf823
admin:
root:root
root:admin
admin:admin
admin:root
backup:backup
guest:guest
root:master
root:1234
admin:master
admin:111111
root:12345
root:123456
admin:1234
admin:12345
root:12345678
root:123123
admin:123456
admin:12345678
root:654321
admin:123123
admin:654321
root:password
admin:pasword
root:1qazXSW@
test:test

View File

@ -1 +1 @@
24B9E-852 24BE5-713

View File

@ -1,3 +0,0 @@
[FAIL]
admin
root

View File

@ -1,10 +0,0 @@
[FAIL]
admin
root
pass
password
toor
123123
123456
12345
qwerty