Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
View samizdat-shell-help.bash
### my-script — does one thing well
### Usage:
### my-script <input> <output>
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
View fomo3d-pwn.sol
more readable format
pragma solidity ^0.4.24;
interface FoMo3DlongInterface {
function airDropTracker_() external returns (uint256);
function airDropPot_() external returns (uint256);
function withdraw() external;
p0n1 / badERC20Token.txt
Created Jun 8, 2018
This table is only intended for DAPP developer's reference, please pay attention to all the smart contracts listed and try your best to avoid the incompatibility, especially if you are working with one of them.
View badERC20Token.txt
## badERC20 Token with code from etherum-org

With Solidity 0.4.23 a require statement seemingly fail if a contract called has a returndatasize of less than 32. This issue was found when wrapping a transferFrom function call, which doesn't return anything, in a require.

Older contracts that use STOP to return control flow place 1 on the stack through the return of CALL and so RETURNDATASIZE is set to 0. The new require seems to enforce that at least 32 bytes must be returned by the child contract (with RETURNDATASIZE >= 0x20) which seems to break old contracts that simply check whether the return of CALL itself was 1.

The token contract used is Adex.

This issue indicates that any token transfered without a return will fail, affecting any contract using tokens transfers that are wrapped in a require as of solidity v0.4.23

To ensure this really is an issue, we have tried running the code with 2 solidity versions. Essentially wrapping

View wx_t1t_hack.js
var CryptoJS = require('crypto-js')
var request = require('request-promise')
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
View .gitignore
muuki88 / jenkins-sbt.groovy
Created Nov 2, 2016
Jenkins 2.0 SBT build pipeline
View jenkins-sbt.groovy
node {
stage('Git') {
git ''
stage('Build') {
def builds = [:]
builds['scala'] = {
// assumes you have the sbt plugin installed and created an sbt installation named 'sbt-0.13.13'
sh "${tool name: 'sbt-0.13.13', type: 'org.jvnet.hudson.plugins.SbtPluginBuilder$SbtInstallation'}/bin/sbt compile test"
ezimuel /
Created Mar 14, 2016
Sign and verify a file using OpenSSL command line tool. It exports the digital signature in Base64 format.
# Sign a file with a private key using OpenSSL
# Encode the signature in Base64 format
# Usage: sign <file> <private_key>
# NOTE: to generate a public/private key use the following commands:
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem
You can’t perform that action at this time.