Skip to content

Instantly share code, notes, and snippets.

View Cr0wn-Gh0ul's full-sized avatar

Troy Salem Cr0wn-Gh0ul

View GitHub Profile
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract MultiSend {
enum AssetType {
ETH,
ERC20,
ERC721,
ERC1155,
CALLDATA

Keybase proof

I hereby claim:

  • I am cr0wn-gh0ul on github.
  • I am cr0wngh0ul (https://keybase.io/cr0wngh0ul) on keybase.
  • I have a public key ASCOVyNC_kEZsZi0wXHXHj61itWb_4gAoHIBQWOO4qT4Tgo

To claim this, I am signing this object:

[Unit]
Description = AliceNet Validator Node
Wants = network-online.target
After = network-online.target
[Service]
User = $(whoami)
ExecStart = /home/{USER}/alicenet --config /home/{USER}/config.toml validator
Restart = on-failure
RestartSec = 3
[loglevel]
# Log Types: alicenet | consensus | transport | app | db | gossipbus | badger | peerman | localrpc | dman | peer | yamux | ethereum | main | deploy | utils | monitor | dkg | services | settings | validator | muxhandler | bootnode | p2pmux | status | ipc | firewalld | transaction | tasks | staterecover
# Log Levels: trace | debug | info | warn | error | fatal | panic
# Default: All logs are set to info
# Example: blockchain = "debug"
[chain]
id = 1 #{number} - chain id for AliceNet
stateDB = "" #{"string"} - Directory to store state database in
stateDBInMemory = false #{bool} - Store state database in memory instead of files
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;
library CalldataUtils {
function concatMemCall(bytes memory a_, bytes calldata b_)
public
pure
returns (bytes memory ret)
{
ret = new bytes(b_.length + a_.length);
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;
library oops {
function test(bytes calldata testData_)
public
pure
returns (bytes memory testReturn)
{
assembly {
let ptr := mload(0x40)
pragma solidity 0.8.4;
/// @title DynamicBuffer
/// @author David Huber (@cxkoda) and Simon Fremaux (<@!410568850283823105>)
/// this library is just putting together code created by David Huber
/// that you can find in https://github.com/cxkoda/strange-attractors/
/// he gave me the authorization to put it together into a single library
/// @notice This library is used to allocate a big amount of memory and then always update the buffer content
/// without needing to reallocate memory. This allows to save a lot of gas when manipulating bytes/strings
/// @dev First, allocate memory. Then use DynamicBuffer.appendBytes(buffer, theBytes);
#!/bin/bash
##########################################
# mk_chroot #
# ~Created by Cr0wn_Gh0ul #
# #
# This script is used to automate #
# the process of creating a chroot jail #
# through a interactive scripts. #
##########################################
#!/bin/bash
# puzzle script and solution script
# Cr0wn_Gh0ul
######## Puzzle Script ###########
#!/bin/bash
#Address: 0xc644EB912c7619db5f66587a8a8f2A6ecd3d8C97
declare -a a; # Indexed array named "a"
b=0 # Looking below we can see this variable is incremented in a loop, so just a counter.
#Address: 0xc644EB912c7619db5f66587a8a8f2A6ecd3d8C97
declare -a a;
b=0
x=$1
y=$2
z=$3
while IFS= read -r -n1 c; do
c=$(printf "%01x" $(( (($y*0x$c) + $z) % $x)))
a[$b]="$c";
b=$(($b+1));