Skip to content

Instantly share code, notes, and snippets.

@lax123xxx
lax123xxx / 1_top+hacker_methodologies.md
Created January 7, 2024 05:11 — forked from ruevaughn/1_top+hacker_methodologies.md
Hacker Methodologies & Tools (NEW)

The Top Hacker Methodologies & Tools Notes

Nuclei Templates

Concrete5 CMS : Identification, Mass Hunting, Nuclei Template Writing & Reporting


@lax123xxx
lax123xxx / .debugger...generated-sources...#utility.yul
Created December 27, 2023 15:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
{
function abi_decode_t_address(offset, end) -> value {
value := calldataload(offset)
validator_revert_t_address(value)
}
function abi_decode_t_uint256(offset, end) -> value {
value := calldataload(offset)
validator_revert_t_uint256(value)
@lax123xxx
lax123xxx / .debugger...generated-sources...#utility.yul
Created December 26, 2023 11:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
{
function abi_decode_t_address(offset, end) -> value {
value := calldataload(offset)
validator_revert_t_address(value)
}
function abi_decode_t_uint256(offset, end) -> value {
value := calldataload(offset)
validator_revert_t_uint256(value)
@lax123xxx
lax123xxx / contracts...1_Storage.sol
Created November 14, 2023 10:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts
*/
contract Storage {
@lax123xxx
lax123xxx / contracts...Airdrop.sol
Created November 14, 2023 07:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Airdropx {
mapping (address => uint256) failTransferList;
address public tokenaddr;
constructor(address TokenContract) payable {
tokenaddr = TokenContract;
}
@lax123xxx
lax123xxx / contracts...Airdrop.sol
Created November 14, 2023 06:58
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Airdropx {
mapping (address => uint256) failTransferList;
address public tokenaddr;
constructor(address TokenContract) payable {
tokenaddr = TokenContract;
}
@lax123xxx
lax123xxx / contracts...Airdrop.sol
Created September 25, 2023 12:11
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Airdropx {
mapping (address => uint256) failTransferList;
address public tokenaddr;
constructor(address TokenContract) payable {
tokenaddr = TokenContract;
}
@lax123xxx
lax123xxx / contracts...Airdrop.sol
Created September 25, 2023 11:55
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Airdropx {
mapping (address => uint256) failTransferList;
address public tokenaddr;
constructor(address TokenContract) payable {
tokenaddr = TokenContract;
}
@lax123xxx
lax123xxx / contracts...Faucet.sol
Created September 25, 2023 10:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IERC20.sol";
contract Faucet{
address public faucetAddr;
uint256 public amount = 100;
mapping (address => bool) public requestAddr ;
event Transfer(address indexed to, uint256 indexed amount);
@lax123xxx
lax123xxx / contracts...IERC20.sol
Created September 25, 2023 08:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IERC20 {
event Transfer(address indexed from, address indexed to , uint256 value);
event Approval(address indexed owener, address indexed spender,uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to ,uint256 amount) external returns (bool);