[CMD] | [Unix] | [Powershell] | Synopsis |
---|---|---|---|
HELP | [man] | [Get-Help] | Displays information about commands and concepts. |
[apropos] | [Get-Command] | Gets all commands. | |
[Show-Command] | Displays PowerShell commands in a graphical window. | ||
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
//2^15 => 15 bits | |
const HALF_STEP = 16384n | |
const STEP = 32768 | |
const QUATERNION_LIMITS = 2 / (STEP) | |
/** | |
* The purpose of this small library is the compression of quaternions | |
* for transmit them over the network, where the bandwidth is limited. | |
*/ | |
class Quaternion { |
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
const crypto = require('crypto') | |
const myBuff = Buffer.allocUnsafe(1200); | |
const alg = crypto.getHashes() | |
for(let i = 0; i < alg.length; i++){ | |
const initTime = new Date().getTime() | |
for (let j = 0; j < 100000; j++) { | |
let digBuff = crypto.createHash(alg[i]).update(myBuff).digest() | |
} | |
const endTime = new Date().getTime() | |
console.log(`${alg[i]} - ${100000/((endTime - initTime) / 1000)} hash/s`) |
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
Allocating 1000 buffers of 30000 bytes => avg 9.7mils max 33mils min 3mils | |
Copy 3 buffers of 10000 bytes in 1000 buffers of 30000 bytes: 13.166666666666666 mils max 23mils min 8mils |
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
public class UnityWebRequestAwaiter : INotifyCompletion | |
{ | |
private UnityWebRequestAsyncOperation asyncOp; | |
private Action continuation; | |
public UnityWebRequestAwaiter(UnityWebRequestAsyncOperation asyncOp) | |
{ | |
this.asyncOp = asyncOp; | |
asyncOp.completed += OnRequestCompleted; | |
} |
It "types" the contents of the clipboard.
Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.
- One example is in system password fields on OSX.
- Sometimes you're working in a VM and the clipboard isn't shared.
- Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
- Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.
The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.
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
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |