Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
reedthorngag authored Feb 3, 2022
1 parent 60ef79d commit 79ad326
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <strsafe.h>
#include <string>
#include <list>
#include <vector>
#include <fstream>

using namespace std;

Expand Down Expand Up @@ -40,7 +40,7 @@ const char* ws2cc(wstring s) {
int main(int argc,char *argv[]) {

if (system("net session 2> Nul 1> Nul")!=0) {
system(ws2s(L"start /b cmd.exe /r \"ping 0.0.0.0 -n 1 -w 1000 > Nul & powershell start -verb runas '"+s2ws(argv[0])+L"' > Nul\""));
system(ws2s(L"start /b cmd.exe /r \"ping 0.0.0.0 -n 1 -w 100 > Nul & powershell start -verb runas '"+s2ws(argv[0])+L"' > Nul\""));
_exit(0);
}

Expand All @@ -52,6 +52,10 @@ int main(int argc,char *argv[]) {
}
}

ifstream in("password.txt");
string contents((istreambuf_iterator<char>(in)), istreambuf_iterator<char>());


system("start AutoHotkey keyboardlock.ahk > Nul");
system("start AutoHotkey mouselock.ahk > Nul");
system("start /b taskmanagerassasin.exe > Nul");
Expand Down
Binary file modified sleep.exe
Binary file not shown.

0 comments on commit 79ad326

Please sign in to comment.