diff --git a/CheckKey_Th.cpp b/CheckKey_Th.cpp index 02f01f3..7154922 100644 --- a/CheckKey_Th.cpp +++ b/CheckKey_Th.cpp @@ -5,6 +5,8 @@ #include "Connector.h" #include "Utils.h" +int CheckKey_Th::isActiveKey = -1; + void getSubStrEx(const char *src, char *startStr, char *endStr, char *dest, int szDest) { ZeroMemory(dest, szDest); @@ -69,6 +71,7 @@ int KeyCheckerMain() if(Utils::ustrstr(buffer, std::string("202 Accepted")) != -1) { stt->doEmitionGreenFoundData("Key is valid."); + CheckKey_Th::isActiveKey = 1; if(emitIfOK == 0) stt->doEmitionStartScanIP(); else if(emitIfOK == 1) stt->doEmitionStartScanDNS(); else if(emitIfOK == 2) stt->doEmitionStartScanImport(); diff --git a/CheckKey_Th.h b/CheckKey_Th.h index e7fe606..d6e124e 100644 --- a/CheckKey_Th.h +++ b/CheckKey_Th.h @@ -6,6 +6,7 @@ extern int emitIfOK; class CheckKey_Th : public QThread { +public: static int isActiveKey; Q_OBJECT protected: diff --git a/HikvisionLogin.cpp b/HikvisionLogin.cpp index f43b56a..3eeed14 100644 --- a/HikvisionLogin.cpp +++ b/HikvisionLogin.cpp @@ -4,14 +4,6 @@ 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 lps = { "UNKNOWN", "", "" }; diff --git a/HikvisionLogin.h b/HikvisionLogin.h index e52397e..ebfa7a5 100644 --- a/HikvisionLogin.h +++ b/HikvisionLogin.h @@ -10,13 +10,6 @@ public: static bool isInitialized; private: lopaStr hikLogin(const char * sDVRIP, int wDVRPort); public: - HikVis(){ - hikInit(); - } - ~HikVis(){ - hikCleanup(); - } - void hikInit(); void hikCleanup(); lopaStr HVLobby(const char *ip, const int port); diff --git a/MainStarter.cpp b/MainStarter.cpp index d2378c1..baaae6c 100644 --- a/MainStarter.cpp +++ b/MainStarter.cpp @@ -416,7 +416,12 @@ void MainStarter::saveBackupToFile() sprintf(saveStr, "[SESSION]:%d RESTORE_IMPORT_SESSION %d %s\n", gMode, gThreads, gPorts); strcat(saveBuffer, 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); strcat(saveBuffer, saveStr); @@ -1283,18 +1288,23 @@ void MainStarter::runAuxiliaryThreads() { } } -void MainStarter::start(const char* targets, const char* ports) { - - curl_global_init(CURL_GLOBAL_ALL); - +void MainStarter::createResultFiles() { #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) bool res = CreateDirectoryA(RESULT_DIR_NAME, NULL); + if(!res) stt->doEmitionRedFoundData("Failed to crete results."); #else struct stat str = { 0 }; if (stat(RESULT_DIR_NAME, &str) == -1) { mkdir(RESULT_DIR_NAME, 0700); } #endif +} + +void MainStarter::start(const char* targets, const char* ports) { + + curl_global_init(CURL_GLOBAL_ALL); + + createResultFiles(); if (loadTargets(targets) == -1 || loadPorts(ports, ',') == -1) { diff --git a/MainStarter.h b/MainStarter.h index fb0389a..1710834 100644 --- a/MainStarter.h +++ b/MainStarter.h @@ -104,6 +104,7 @@ public: void saver(); void saveBackupToFile(); int fileLoader(const char *fileName); + static void createResultFiles(); void start(const char* targets, const char* ports); }; diff --git a/externData.h b/externData.h index 39f6b70..1670e0b 100644 --- a/externData.h +++ b/externData.h @@ -5,7 +5,7 @@ #include #define RECV_MAX_SIZE 350000 #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; #ifndef CP_UTF8 diff --git a/finder.cpp b/finder.cpp index 294b6ba..d3bdbcd 100644 --- a/finder.cpp +++ b/finder.cpp @@ -719,6 +719,7 @@ void fputsf(char *text, int flag, char *msg) else { stt->doEmitionRedFoundData("Cannot open file [FLAG: " + QString::number(flag) + "] " + QString::number(GetLastError())); + MainStarter::createResultFiles(); }; } diff --git a/login.txt b/login.txt index deaf188..e69de29 100644 --- a/login.txt +++ b/login.txt @@ -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 \ No newline at end of file diff --git a/msgcheckerthread.cpp b/msgcheckerthread.cpp index 0744d5c..242ac85 100644 --- a/msgcheckerthread.cpp +++ b/msgcheckerthread.cpp @@ -39,11 +39,15 @@ void _getNewMsg() }; } -void MSGCheckerThread::run() +void MSGCheckerThread::run() { - for(;;) - { - Sleep(60000); - if(strlen(trcPersKey) != 0) _getNewMsg(); - }; + if (!msgChkRunnning) { + for (;;) + { + msgChkRunnning = true; + if (strlen(trcPersKey) != 0) _getNewMsg(); + else { mct->doEmitionShowNewMsg(QString("No key detected.")); } + Sleep(60000); + }; + } } diff --git a/msgcheckerthread.h b/msgcheckerthread.h index bb098ba..47c14d2 100644 --- a/msgcheckerthread.h +++ b/msgcheckerthread.h @@ -6,6 +6,7 @@ class MSGCheckerThread : public QThread { +private: bool msgChkRunnning = false; Q_OBJECT public: static void doEmitionShowNewMsg(QString str); diff --git a/negatives.txt b/negatives.txt index e1f1742..0519ecb 100644 --- a/negatives.txt +++ b/negatives.txt @@ -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 ->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 -хокке -добро пожаловать в -статусы -высказывани -флэшки -футбол -юмор -новости -на реконструкции -обновление сайта -офис -юридич -страница не найдена -прода \ No newline at end of file + \ No newline at end of file diff --git a/nesca_3.cpp b/nesca_3.cpp index 8b5bb22..da55245 100644 --- a/nesca_3.cpp +++ b/nesca_3.cpp @@ -17,6 +17,17 @@ #include "progressbardrawer.h" #include "FileDownloader.h" #include "HikvisionLogin.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include NET_DVR_Init hik_init_ptr = NULL; NET_DVR_Cleanup hik_cleanup_ptr = NULL; @@ -131,7 +142,76 @@ QVector dotsThreads; QFont multiFontSmallFontPie; 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(strNunu, "")); + return strNunu.str(); +} + + 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(finalIP, sizeof(finalIP)); 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) { if (obj == qwm) @@ -2334,6 +2382,9 @@ void RestoreSession() } setUIText("[MAXBTHR]:", ui->maxBrutingThrBox, 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("[SYSTEMPROXYPORT]:", ui->systemProxyPort, resStr); @@ -2513,7 +2564,7 @@ void nesca_3::startScanButtonClicked() { if(ui->linePersKey->text().size() != 0) { - CheckPersKey(0); + CheckPersKey(); } else { @@ -2569,7 +2620,7 @@ void nesca_3::startScanButtonClickedDNS() { if(ui->linePersKey->text().size() != 0) { - CheckPersKey(1); + CheckPersKey(); } else { @@ -2626,7 +2677,7 @@ void nesca_3::importAndScan() { if (ui->linePersKey->text().size() != 0) { - CheckPersKey(2); + CheckPersKey(); } else { @@ -2876,6 +2927,8 @@ void nesca_3::appendErrText(QString str) }; } + + void nesca_3::appendOKText(QString str) { ui->dataText->append("[" + QTime::currentTime().toString() + "][OK] " + str + ""); @@ -2937,6 +2990,7 @@ QString GetColorCode(int mode, QString str) return result; } +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) void enableHikvisionSupport(){ HINSTANCE hGetProcIDDLL = LoadLibrary(L".\\HCNetSDK.dll"); @@ -2970,7 +3024,122 @@ void enableHikvisionSupport(){ HikVis::isInitialized = true; 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) { @@ -3018,36 +3187,27 @@ nesca_3::nesca_3(QWidget *parent) : QMainWindow(parent) 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);"); - CreateVerFile(); RestoreSession(); - 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 + QString y = QString(QCryptographicHash::hash((ypypNunu().c_str()), QCryptographicHash::Md5).toHex()); + QString nu(grgNun().c_str()); + if (y.compare(nu) != 0) { + ui->tabMainWidget->setTabEnabled(0, false); + ui->tabMainWidget->setTabEnabled(1, false); + ui->tabMainWidget->setTabEnabled(2, false); + stt->doEmitionYellowFoundData("== Enter your personal key, please. =="); + } + 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(); + }; + } } nesca_3::~nesca_3() diff --git a/nesca_3.h b/nesca_3.h index 93a07ce..54bdfff 100644 --- a/nesca_3.h +++ b/nesca_3.h @@ -75,7 +75,7 @@ protected: void slotDrawVoiceGrid(int factor); void slotDrawTextPlacers(); void CheckPersKey(); - void CheckPersKey(int val); + bool CheckPersKeyMain(); void slotRestoreDefPorts(); void switchToJobMode(); void switchDataFields(); @@ -116,6 +116,7 @@ protected: void appendRedBAData(QString str); void STTTerminate(); void drawVerboseArcs(unsigned long gTargets); + void finishLoading(); void slotBlockButtons(bool value); private: QPoint dragPosition; diff --git a/nesca_3.ui b/nesca_3.ui index 1710445..8d8be90 100644 --- a/nesca_3.ui +++ b/nesca_3.ui @@ -97,7 +97,7 @@ QTabWidget::Rounded - 0 + 3 Qt::ElideMiddle @@ -115,6 +115,9 @@ false + + false + IP Scan @@ -395,6 +398,9 @@ + + false + DNS Scan @@ -706,6 +712,9 @@ + + false + Import diff --git a/pass.txt b/pass.txt index d129721..e69de29 100644 --- a/pass.txt +++ b/pass.txt @@ -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 \ No newline at end of file diff --git a/sshpass.txt b/sshpass.txt index aac4d48..e69de29 100644 --- a/sshpass.txt +++ b/sshpass.txt @@ -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 \ No newline at end of file diff --git a/version b/version index 18d0644..819d288 100644 --- a/version +++ b/version @@ -1 +1 @@ -24B9E-852 \ No newline at end of file +24BE5-713 \ No newline at end of file diff --git a/wflogin.txt b/wflogin.txt index 2084120..e69de29 100644 --- a/wflogin.txt +++ b/wflogin.txt @@ -1,3 +0,0 @@ -[FAIL] -admin -root \ No newline at end of file diff --git a/wfpass.txt b/wfpass.txt index 548a4e7..e69de29 100644 --- a/wfpass.txt +++ b/wfpass.txt @@ -1,10 +0,0 @@ -[FAIL] -admin -root -pass -password -toor -123123 -123456 -12345 -qwerty \ No newline at end of file