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
Online kms host address: | |
-------- | |
kms.digiboy.ir | |
54.223.212.31 | |
kms.cnlic.com | |
kms.chinancce.com | |
kms.ddns.net | |
franklv.ddns.net | |
k.zpale.com | |
m.zpale.com |
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 bash | |
# http://brainsuckerna.blogspot.com/2016/05/limiting-mongodb-memory-usage-with.html | |
# (c) Miadzvedz Mikalai, 2016. brainsucker.na at gmail.com | |
# init scripts (c) frank2, see http://frank2.net/cgroups-ubuntu-14-04/ for description and details | |
# more info (no init scripts): using cgroups to limit DB memory https://www.percona.com/blog/2015/07/01/using-cgroups-to-limit-mysql-and-mongodb-memory-usage/ | |
# | |
# execute from shell: | |
# sudo bash -c 'curl -o- http://brains.by/misc/mongodb_memory_limit_ubuntu1404.sh | bash' | |
{ # this ensures the entire script is downloaded # |
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
/* | |
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses | |
Floated div edition | |
01-05-2017 | |
(c) 2017 - Loran Kloeze - [email protected] | |
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds | |
of information from a range of phonenumbers. It doesn't matter if these numbers are part | |
of your contact list. At the end a table is displayed containing phonenumbers, profile pics, | |
about texts and online statuses. The online statuses are being updated every |
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
""" | |
module mydjangolib.bigint_patch | |
A fix for the rather well-known ticket #399 in the django project. | |
Create and link to auto-incrementing primary keys of type bigint without | |
having to reload the model instance after saving it to get the ID set in | |
the instance. | |
Logs: |
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
int CreateCmdPipe(char *szCmd) | |
{ | |
PROCESS_INFORMATION pi = {0}; | |
struct sockaddr_in sa = {0}; | |
STARTUPINFO si = {0}; | |
memset(&si, 0, sizeof(si)); | |
si.cb = sizeof(si); | |
si.wShowWindow = SW_HIDE; | |
si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES; |
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
BOOL GetCpuID(char *szCPU, int nSize) | |
{ | |
BYTE szCpu[16] = {0}; | |
UINT uCpuID = 0U; | |
try { | |
_asm { | |
mov eax, 0 | |
cpuid | |
mov dword ptr szCpu[0], ebx |
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
int GetIpByHostName(char szHost) | |
{ | |
struct hostent *rmtHost = NULL; | |
struct in_addr stAddr = {0}; | |
if (NULL == szHost) { | |
Log("GetIpByHostName input null.\n"); | |
return -1; | |
} |
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
int ModifyFileTime(char *szTgtFile, char *szTimeFile) | |
{ | |
HANDLE hFileOld = NULL, hFileNew = NULL; | |
FILETIME stCreateTime = {0}, stLastAccessTime = {0}, stLastWriteTime = {0}; | |
const FILETIME *pCreateTime = NULL, *pLastAccessTime = NULL, *pLastWriteTime = NULL; | |
int nRet = 0; | |
hFileOld = CreateFile(szTimeFile, | |
GENERIC_READ | GENERIC_WRITE, | |
0, |
NewerOlder