Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/tests/testdata/outputs_expected/calls.sol.o.graph.html

56 lines
28 KiB

<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;
}
body {
background-color: #232625;
color: #ffffff;
font-size: 10px;
}
</style>
<script>
var options = {"autoResize": true, "edges": {"font": {"align": "horizontal", "background": "none", "color": "#FFFFFF", "face": "arial", "multi": false, "strokeColor": "#ffffff", "strokeWidth": 0, "vadjust": 0}}, "height": "100%", "layout": {"hierarchical": {"blockShifting": true, "direction": "LR", "edgeMinimization": true, "enabled": true, "levelSeparation": 450, "nodeSpacing": 200, "parentCentralization": false, "sortMethod": "directed", "treeSpacing": 100}, "improvedLayout": true}, "manipulation": false, "nodes": {"borderWidth": 1, "borderWidthSelected": 2, "chosen": true, "color": "#000000", "font": {"align": "left", "color": "#FFFFFF"}, "shape": "box"}, "physics": {"enabled": false}, "width": "100%"};
var nodes = [{"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "0 PUSH1 0x60\n2 PUSH1 0x40\n4 MSTORE\n5 PUSH1 0x04\n7 CALLDATASIZE\n8 LT\n9 PUSH2 0x0083\n12 JUMPI", "id": "188", "isExpanded": false, "label": "0 PUSH1 0x60\n2 PUSH1 0x40\n4 MSTORE\n5 PUSH1 0x04\n7 CALLDATASIZE\n8 LT\n(click to expand +)", "size": 150, "truncLabel": "0 PUSH1 0x60\n2 PUSH1 0x40\n4 MSTORE\n5 PUSH1 0x04\n7 CALLDATASIZE\n8 LT\n(click to expand +)"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "132 PUSH1 0x00\n134 DUP1\n135 REVERT", "id": "189", "isExpanded": false, "label": "132 PUSH1 0x00\n134 DUP1\n135 REVERT", "size": 150, "truncLabel": "132 PUSH1 0x00\n134 DUP1\n135 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "13 PUSH1 0x00\n15 CALLDATALOAD\n16 PUSH29 0x01000000(...)\n46 SWAP1\n47 DIV\n48 PUSH4 0xffffffff\n53 AND\n54 DUP1\n55 PUSH4 0x2776b163\n60 EQ\n61 PUSH2 0x0088\n64 JUMPI", "id": "190", "isExpanded": false, "label": "13 PUSH1 0x00\n15 CALLDATALOAD\n16 PUSH29 0x01000000(...)\n46 SWAP1\n47 DIV\n48 PUSH4 0xffffffff\n(click to expand +)", "size": 150, "truncLabel": "13 PUSH1 0x00\n15 CALLDATALOAD\n16 PUSH29 0x01000000(...)\n46 SWAP1\n47 DIV\n48 PUSH4 0xffffffff\n(click to expand +)"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "137 CALLVALUE\n138 ISZERO\n139 PUSH2 0x0093\n142 JUMPI", "id": "191", "isExpanded": false, "label": "137 CALLVALUE\n138 ISZERO\n139 PUSH2 0x0093\n142 JUMPI", "size": 150, "truncLabel": "137 CALLVALUE\n138 ISZERO\n139 PUSH2 0x0093\n142 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "65 DUP1\n66 PUSH4 0x379bf63c\n71 EQ\n72 PUSH2 0x00c1\n75 JUMPI", "id": "192", "isExpanded": false, "label": "65 DUP1\n66 PUSH4 0x379bf63c\n71 EQ\n72 PUSH2 0x00c1\n75 JUMPI", "size": 150, "truncLabel": "65 DUP1\n66 PUSH4 0x379bf63c\n71 EQ\n72 PUSH2 0x00c1\n75 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "148 PUSH2 0x00bf\n151 PUSH1 0x04\n153 DUP1\n154 DUP1\n155 CALLDATALOAD\n156 PUSH20 0xffffffff(...)\n177 AND\n178 SWAP1\n179 PUSH1 0x20\n181 ADD\n182 SWAP1\n183 SWAP2\n184 SWAP1\n185 POP\n186 POP\n187 PUSH2 0x01e3\n190 JUMP", "id": "193", "isExpanded": false, "label": "148 PUSH2 0x00bf\n151 PUSH1 0x04\n153 DUP1\n154 DUP1\n155 CALLDATALOAD\n156 PUSH20 0xffffffff(...)\n(click to expand +)", "size": 150, "truncLabel": "148 PUSH2 0x00bf\n151 PUSH1 0x04\n153 DUP1\n154 DUP1\n155 CALLDATALOAD\n156 PUSH20 0xffffffff(...)\n(click to expand +)"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "143 PUSH1 0x00\n145 DUP1\n146 REVERT", "id": "194", "isExpanded": false, "label": "143 PUSH1 0x00\n145 DUP1\n146 REVERT", "size": 150, "truncLabel": "143 PUSH1 0x00\n145 DUP1\n146 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "194 CALLVALUE\n195 ISZERO\n196 PUSH2 0x00cc\n199 JUMPI", "id": "195", "isExpanded": false, "label": "194 CALLVALUE\n195 ISZERO\n196 PUSH2 0x00cc\n199 JUMPI", "size": 150, "truncLabel": "194 CALLVALUE\n195 ISZERO\n196 PUSH2 0x00cc\n199 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "76 DUP1\n77 PUSH4 0x5a6814ec\n82 EQ\n83 PUSH2 0x0116\n86 JUMPI", "id": "196", "isExpanded": false, "label": "76 DUP1\n77 PUSH4 0x5a6814ec\n82 EQ\n83 PUSH2 0x0116\n86 JUMPI", "size": 150, "truncLabel": "76 DUP1\n77 PUSH4 0x5a6814ec\n82 EQ\n83 PUSH2 0x0116\n86 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"backgroun
var edges = [{"arrows": "to", "from": "188", "label": "Not(ULE(4, calldatasize_Unknown))", "smooth": {"type": "cubicBezier"}, "to": "189"}, {"arrows": "to", "from": "188", "label": "ULE(4, calldatasize_Unknown)", "smooth": {"type": "cubicBezier"}, "to": "190"}, {"arrows": "to", "from": "190", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x2776b163", "smooth": {"type": "cubicBezier"}, "to": "191"}, {"arrows": "to", "from": "190", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x2776b163)", "smooth": {"type": "cubicBezier"}, "to": "192"}, {"arrows": "to", "from": "191", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "193"}, {"arrows": "to", "from": "191", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "194"}, {"arrows": "to", "from": "192", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x379bf63c", "smooth": {"type": "cubicBezier"}, "to": "195"}, {"arrows": "to", "from": "192", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x379bf63c)", "smooth": {"type": "cubicBezier"}, "to": "196"}, {"arrows": "to", "from": "195", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "197"}, {"arrows": "to", "from": "195", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "198"}, {"arrows": "to", "from": "196", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x5a6814ec", "smooth": {"type": "cubicBezier"}, "to": "199"}, {"arrows": "to", "from": "196", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x5a6814ec)", "smooth": {"type": "cubicBezier"}, "to": "200"}, {"arrows": "to", "from": "197", "label": "", "smooth": {"type": "cubicBezier"}, "to": "201"}, {"arrows": "to", "from": "199", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "202"}, {"arrows": "to", "from": "199", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "203"}, {"arrows": "to", "from": "200", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xb5d02c8a", "smooth": {"type": "cubicBezier"}, "to": "204"}, {"arrows": "to", "from": "200", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0xb5d02c8a)", "smooth": {"type": "cubicBezier"}, "to": "205"}, {"arrows": "to", "from": "202", "label": "", "smooth": {"type": "cubicBezier"}, "to": "206"}, {"arrows": "to", "from": "204", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "207"}, {"arrows": "to", "from": "204", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "208"}, {"arrows": "to", "from": "205", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xd24b08cc", "smooth": {"type": "cubicBezier"}, "to": "209"}, {"arrows": "to", "from": "205", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0xd24b08cc)", "smooth": {"type": "cubicBezier"}, "to": "210"}, {"arrows": "to", "from": "193", "label": "", "smooth": {"type": "cubicBezier"}, "to": "211"}, {"arrows": "to", "from": "207", "label": "", "smooth": {"type": "cubicBezier"}, "to": "212"}, {"arrows": "to", "from": "209", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "213"}, {"arrows": "to", "from": "209", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "214"}, {"arrows": "to", "from": "201", "label": "", "smooth": {"type": "cubicBezier"}, "to": "215"}, {"arrows": "to", "from": "210", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xe11f493e", "smooth": {"type": "cubicBezier"}, "to": "216"}, {"arrows": "to", "from": "210", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0xe11f493e)", "smooth": {"type": "cubicBezier"}, "to": "217"}, {"arrows": "to", "from": "213", "label": "", "smooth": {"type": "cubicBezier"}, "to": "218"}, {"arrows": "to", "from": "216", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "219"}, {"arrows": "to", "from": "216", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "220"}, {"arrows": "to", "from": "217", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xe1d10f79", "smooth": {"type": "cubicBezier"}, "to": "2
</script>
</head>
<body>
<p>Mythril / Ethereum LASER Symbolic VM</p>
<p><div id="mynetwork"></div><br/></p>
<script type="text/javascript">
var container = document.getElementById('mynetwork');
var nodesSet = new vis.DataSet(nodes);
var edgesSet = new vis.DataSet(edges);
var data = {'nodes': nodesSet, 'edges': edgesSet}
var gph = new vis.Network(container, data, options);
gph.on("click", function (params) {
// parse node id
var nodeID = params['nodes']['0'];
if (nodeID) {
var clickedNode = nodesSet.get(nodeID);
if(clickedNode.isExpanded) {
clickedNode.label = clickedNode.truncLabel;
}
else {
clickedNode.label = clickedNode.fullLabel;
}
clickedNode.isExpanded = !clickedNode.isExpanded;
nodesSet.update(clickedNode);
}
});
</script>
</body>
</html>