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
/proc # cat version | |
Linux version 3.18.21 (asp@RTF8207W-R82XXR231123) (gcc version 4.6.3 (Buildroot 2015.08.1) ) #18 SMP Thu Nov 23 06:07:07 UTC 2023 | |
/proc # cat cpuinfo | |
system type : EcoNet EN7528 SOC | |
machine : econet,en751221 | |
processor : 0 | |
cpu model : MIPS 1004Kc V2.15 | |
BogoMIPS : 591.87 | |
wait instruction : yes | |
microsecond timers : yes |
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
Check these APIs | |
user32.dll | |
# IsWindowEnabled | |
# IsWindowVisible | |
# EnableWindow | |
# SwitchToThisWindow | |
# SetForegroundWindow | |
# LockSetForegroundWindow | |
# BringWindowToTop | |
# GetForegroundWindow |
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
rem This script will try fix your mouse wheel upside down problem | |
set QueryString=reg query HKLM\SYSTEM\CurrentControlSet\Enum\HID /s /v FlipFlopWheel^^^|find ^"HKEY^" | |
for /f "delims=" %%i in ('%QueryString%') do @( | |
reg add "%%i" /v FlipFlopWheel /t REG_DWORD /d 1 /f | |
) | |
for /f "tokens=6 delims=\" %%i in ('%QueryString%') do @( | |
wmic path Win32_PnPEntity where "DeviceID like 'HID\\%%%%i%%'" call Disable | |
wmic path Win32_PnPEntity where "DeviceID like 'HID\\%%%%i%%'" call Enable |
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
[autohidden] The input file was linked with debug information | |
and the symbol filename is: | |
"...\dll.pdb" | |
Do you want to look for this file at the specified path | |
and the Microsoft Symbol Server? | |
-> No | |
What to change to yes? | |
HKCU\Software\Hex-Rays\IDA\Hidden Messages |
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
function calcEntropy(str) { | |
const uniqChars = [...new Set(str)]; | |
const totalCount = str.length; | |
let entropy = 0; | |
for (const char of uniqChars) { | |
const charCount = str.split(char).length - 1; | |
const probability = charCount / totalCount; | |
entropy -= probability * Math.log2(probability); | |
} |
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
function clickthat(s, t) | |
{ | |
var a = Array.from(document.querySelectorAll(s)); | |
var intervalId = setInterval(() => { | |
if (a.length > 0) { | |
a.shift().click(); | |
} else { | |
clearInterval(intervalId); | |
console.log('bye'); |
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
function sha1(data) { | |
var K = [0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xCA62C1D6]; | |
var H = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]; | |
var words = []; | |
var data_len = data.length; | |
data.push(0x80); | |
while (data.length % 64 !== 56) { | |
data.push(0); | |
} |
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
function genTotp(s) { | |
const a = 'abcdefghijklmnopqrstuvwxyz234567', t = BigInt(Math.floor(Date.now() / 30000)), b = new Uint8Array(8); | |
let bits = '', bytes = new Uint8Array(s.length * 5 / 8); | |
for (let c of s) bits += a.indexOf(c).toString(2).padStart(5, '0'); | |
for (let i = 0, j = 0; i + 8 <= bits.length; i += 8, j++) bytes[j] = parseInt(bits.substr(i, 8), 2); | |
for (let i = 0; i < 8; i++) b[7 - i] = Number(t >> (BigInt(i) * 8n)); | |
return crypto.subtle.importKey("raw", bytes.buffer, { name: "HMAC", hash: "SHA-1" }, false, ["sign"]).then(k => | |
crypto.subtle.sign("HMAC", k, b) |
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
kldload: /boot/kernel/if_ixv.ko: file has no contents | |
linker_load_file: /boot/kernel/if_ixv.ko - unsupported file type | |
Are you using ixv-1.5.34? | |
Use any version but ixv-1.5.34. |
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
# run it at the host | |
Get-VMSwitch|? SwitchType -eq External | ft Name,NetAdapterInterfaceDescription, Iov* -Wrap | |
# sample output, SRIOV not working on vswitch e-base | |
```` | |
Name NetAdapterInterfaceDescription IovEnabled IovSupport IovSupportReasons IovQueuePairCount IovQueuePairsInUse IovVirtualFunctionCount IovVirt | |
ualFunc | |
tionsIn | |
Use | |
---- ------------------------------ ---------- ---------- ----------------- ----------------- ------------------ ----------------------- ------- |
NewerOlder