This file contains hidden or 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
| QString CParserJson::GenResponse(int flag, bool state) | |
| { | |
| QString ret; | |
| QVariantMap jsonRoot; | |
| QVariantMap jsonElements; | |
| QVariantMap jsonType; |
This file contains hidden or 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
| DWORD GetProcId(const wchar_t* procName) | |
| { | |
| DWORD procId = 0; | |
| HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); | |
| if (hSnap != INVALID_HANDLE_VALUE) | |
| { | |
| PROCESSENTRY32 procEntry; | |
| procEntry.dwSize = sizeof(procEntry); |
This file contains hidden or 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 is how you can play a Paladin(wich is not available) right now in Karos. | |
| BTW is sad that they want bug testers for the open beta and then they ban ppl for finding bugs, anyhow here it is, you can patch now. | |
| Our Modified Function | |
| Code: | |
| VOID (__stdcall* pPaladin)(); | |
| __declspec(naked) VOID myPaladin(ULONG bPointer) |
This file contains hidden or 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
| image base address | |
| Code: | |
| NtCurrentPeb()->ImageBaseAddress | |
| or |
This file contains hidden or 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
| import wmi | |
| def wmi_remote(): | |
| host = "you_ip_server" | |
| usr = "you_user_doamin" | |
| pwd = "you_password" | |
| conn = wmi.WMI(host, user=usr, password=pwd) | |
| for class_name in conn.Win32_Process.properties.keys(): | |
| print(class_name) |
This file contains hidden or 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
| import paramiko | |
| import time | |
| def parse_df(raw_df): | |
| pass | |
| def parse_connections(raw_conns): | |
| pass |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import os | |
| import shutil | |
| def get_rules_from_git(): | |
| shutil.rmtree("./rules") | |
| os.system("git clone https://github.com/Yara-Rules/rules.git") |
This file contains hidden or 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
| import smtplib | |
| relay_srv_port = 25 | |
| relay_srv_hst = "exhange.intranet" | |
| msg = "Test mail to SMTP relay" | |
| sender = "you-sender@you-server" | |
| recv = "to-recv@other-server.com" | |
| smtpObj = smtplib.SMTP(relay_srv_hst, relay_srv_port) | |
| smtpObj.sendmail(sender, recv, msg) |
This file contains hidden or 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
| from pyad import adcomputer | |
| def fn1(): | |
| computer = adcomputer.ADComputer.from_cn("STEVEMASTER") | |
| print(computer.get_attribute('msRADIUSFramedIPAddress')) | |
| print(computer.get_attribute('networkAddress')) | |
| fn1() |
This file contains hidden or 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
| import subprocess | |
| def run_ping2(hst): | |
| array_program = ["ping", "-n", "1", hst] | |
| h = subprocess.Popen(array_program, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
| return h.communicate() | |
| def parse_output_ping(output_string): | |
| output_string = output_string.decode("utf-8") |
OlderNewer