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
using System; | |
using System.Runtime.InteropServices; | |
namespace Hook_Example | |
{ | |
class HookManager | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool VirtualProtect(IntPtr lpAddress, uint dwSize, | |
uint flNewProtect, out uint lpflOldProtect); |
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
# Python Version : 3.10.6 64-bit | |
def main(): | |
number = int(input("Insert an odd number: ")) | |
#step 1 - select a number in this range (n > 2) | |
if(number <= 2 and | |
number % 2 == 0): | |
print("Please insert an odd number in this range (n > 2) ") | |
return | |
#step 2 -- n - 1 = 2^k \times m |
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
p = 283 | |
q = 79 | |
s = 13 | |
N = p * s | |
x = [] | |
x.append((s ** 2) % N) | |
for i in range(1, 25): | |
x.append((x[i - 1] ** 2) % N) |
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
""" | |
Classic DLL Injection technique detector rekall plugin | |
by Utku Corbaci ~ Malwation | |
Twitter: @rhotav | |
GitHub : @polynomen | |
""" | |
suspiciousPids = [] |
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
class StringDecryptor: | |
def __init__(self, key): | |
self.key_bytes = bytearray() | |
self.key_bytes.extend(map(ord, key)) | |
self.reset() | |
def initialize_sbox(self, key_bytes): | |
sbox = [i for i in range(256)] | |
key_length = len(key_bytes) | |
j = 0 |