Skip to content

Instantly share code, notes, and snippets.

View p0n1's full-sized avatar
🔍
Searching...

p0n1

🔍
Searching...
View GitHub Profile
@p0n1
p0n1 / install_mythril_on_ubuntu_1604.sh
Created May 11, 2018 03:47
Install Mythril on Ubuntu 16.04 (Xenial)
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install -y solc
sudo apt-get install libssl-dev
sudo apt-get install -y python3-pip python3-dev
sudo ln -s /usr/bin/python3 /usr/local/bin/python
sudo apt-get install -y pandoc
sudo apt-get install -y git
@p0n1
p0n1 / call_ret_value.graph.html
Created May 12, 2018 03:36
call_ret_value.graph.html
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" integrity="sha256-iq5ygGJ7021Pi7H5S+QAUXCPUfaBzfqeplbg/KlEssg=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js" integrity="sha256-JuQeAGbk9rG/EoRMixuy5X8syzICcvB0dj3KindZkY0=" crossorigin="anonymous"></script>
<style type="text/css">
#mynetwork {
background-color: #232625;
}
@p0n1
p0n1 / call_ret_value.improve.graph.html
Last active May 12, 2018 03:39
call_ret_value.improve.graph.html
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" integrity="sha256-iq5ygGJ7021Pi7H5S+QAUXCPUfaBzfqeplbg/KlEssg=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js" integrity="sha256-JuQeAGbk9rG/EoRMixuy5X8syzICcvB0dj3KindZkY0=" crossorigin="anonymous"></script>
<style type="text/css">
#mynetwork {
background-color: #232625;
}

Analysis results for contracts/eip721/EIP721.sol

Message call to external contract

  • Type: Informational
  • Contract: Unknown
  • Function name: mint(string,address,uint256)
  • PC address: 6818

Description

@p0n1
p0n1 / badERC20Token.txt
Created June 8, 2018 12:21
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.
## badERC20 Token with code from etherum-org
0xcc2ae7ad8f32ea3bd38d0192d20e465503ae698d_TokenERC20.sol
0x5fe56bfa37217bd8a2879c15c85ed7a894edf5a6_esportz.sol
0x7E42c72DFbE07Cde83a6BaD535A1A97496Df1531_TokenERC20.sol
0xf175C958aFdBF91a0c1981FF0510fCAA87D71899_GeneticHealthToken.sol
0x0d9a3739f7e072e7562f6e2440f37ad9bee68c4a_TokenERC20.sol
0x6e77c68404cb4b86b1cf7ae4ade8d260b4f9d5ce_UlordToken.sol
0xbeebcfe2fbb3c72884341be2b73ae0fc6559b8fc_Q1SToken.sol
0x9d5e22b6599c426b453de4a43df8a0cb4de061b1_YAKcoinERC20.sol
@p0n1
p0n1 / f3d.like.md
Created October 9, 2018 02:24
Fomo3D is not along - other copycats are also targets of hackers.
Name Address
FoMo3Dlong 0xA62142888ABa8370742bE823c1782D17A0389Da1
Last Winner 0xDd9fd6b6F8f7ea932997992bbE67EabB3e316f3C
FoMoJP 0xCb47C89CB17C10B719FC5eD9665bAE157CAc2cb1
RatScam 0x8a883a20940870Dc055F2070ac8eC847ed2d9918
SuperCard 0x29488e24cFdAA52a0b837217926C0c0853Db7962
FoMo3Dlong Clone 0x5D0d76787D9d564061dD23f8209F804a3b8AD2F2
FoMoGame 0xA004b902BdCf710462F905eD487642031D17521C
Star3Dlong 0x3e22bB2279d6Bea3Cfe57f3Ed608fC3B1DeaDADf
@p0n1
p0n1 / keybase.md
Created October 24, 2019 09:56
stupid verification

Keybase proof

I hereby claim:

  • I am p0n1 on github.
  • I am zkp0n1 (https://keybase.io/zkp0n1) on keybase.
  • I have a public key ASDLwuD2xSi0BgQF40mPpmgX34_1OmyPK4H7ITkciazn_go

To claim this, I am signing this object:

@p0n1
p0n1 / ethsnarks-build-solution.md
Last active January 9, 2020 02:20
fix ethsnarks compiling error about 'gmp.h' file not found

Error log

ethsnarks/depends/libsnark/depends/libff/libff/algebra/fields/bigint.hpp:15:10: fatal error: 'gmp.h' file not found

Reference

HarryR/ethsnarks-miximus#12 (comment)

Thanks for responding with the information, I'm still unsure of why you can compile a single file and it finds gmp.h but when building it's unable to find it, but my thoughts are:

@p0n1
p0n1 / ethsnarks-sha3.md
Last active January 9, 2020 06:34
Fix 'sha3.h' file not found error for ethsnarks

ethsnarks/src/gadgets/mimc.hpp:10:10: fatal error: 'sha3.h' file not found

Should link the SHA3IUF library in CMakeLists.txt.

target_link_libraries(mimc ethsnarks_common crypto SHA3IUF)

e.g.

@p0n1
p0n1 / ethsnarks-osx-cxx11.md
Last active January 9, 2020 06:36
Fix ethsnarks usage on osx

Failed to use ethsnarks library latest version on macOS.

Error log:

ethsnarks/depends/libsnark/depends/libff/libff/common/utils.hpp:34:40: error:
      no template named 'initializer_list' in namespace 'std'

Should set CMAKE_CXX_STANDARD in CMakeLists.txt.