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/exceptions.sol.o.graph.html

58 lines
36 KiB

<!DOCTYPE html>
<html>
<head>
<title>Call Graph</title>
<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 0x008e\n12 JUMPI", "id": "237", "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": "143 PUSH1 0x00\n145 DUP1\n146 REVERT", "id": "238", "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": "13 PUSH1 0x00\n15 CALLDATALOAD\n16 PUSH29 0x01000000(...)\n46 SWAP1\n47 DIV\n48 PUSH4 0xffffffff\n53 AND\n54 DUP1\n55 PUSH4 0x01d4277c\n60 EQ\n61 PUSH2 0x0093\n64 JUMPI", "id": "239", "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": "148 CALLVALUE\n149 ISZERO\n150 PUSH2 0x009e\n153 JUMPI", "id": "240", "isExpanded": false, "label": "148 CALLVALUE\n149 ISZERO\n150 PUSH2 0x009e\n153 JUMPI", "size": 150, "truncLabel": "148 CALLVALUE\n149 ISZERO\n150 PUSH2 0x009e\n153 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "65 DUP1\n66 PUSH4 0x546455b5\n71 EQ\n72 PUSH2 0x00b6\n75 JUMPI", "id": "241", "isExpanded": false, "label": "65 DUP1\n66 PUSH4 0x546455b5\n71 EQ\n72 PUSH2 0x00b6\n75 JUMPI", "size": 150, "truncLabel": "65 DUP1\n66 PUSH4 0x546455b5\n71 EQ\n72 PUSH2 0x00b6\n75 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "159 PUSH2 0x00b4\n162 PUSH1 0x04\n164 DUP1\n165 DUP1\n166 CALLDATALOAD\n167 SWAP1\n168 PUSH1 0x20\n170 ADD\n171 SWAP1\n172 SWAP2\n173 SWAP1\n174 POP\n175 POP\n176 PUSH2 0x018f\n179 JUMP", "id": "242", "isExpanded": false, "label": "159 PUSH2 0x00b4\n162 PUSH1 0x04\n164 DUP1\n165 DUP1\n166 CALLDATALOAD\n167 SWAP1\n(click to expand +)", "size": 150, "truncLabel": "159 PUSH2 0x00b4\n162 PUSH1 0x04\n164 DUP1\n165 DUP1\n166 CALLDATALOAD\n167 SWAP1\n(click to expand +)"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "154 PUSH1 0x00\n156 DUP1\n157 REVERT", "id": "243", "isExpanded": false, "label": "154 PUSH1 0x00\n156 DUP1\n157 REVERT", "size": 150, "truncLabel": "154 PUSH1 0x00\n156 DUP1\n157 REVERT"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "183 CALLVALUE\n184 ISZERO\n185 PUSH2 0x00c1\n188 JUMPI", "id": "244", "isExpanded": false, "label": "183 CALLVALUE\n184 ISZERO\n185 PUSH2 0x00c1\n188 JUMPI", "size": 150, "truncLabel": "183 CALLVALUE\n184 ISZERO\n185 PUSH2 0x00c1\n188 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "76 DUP1\n77 PUSH4 0x78375f14\n82 EQ\n83 PUSH2 0x00d9\n86 JUMPI", "id": "245", "isExpanded": false, "label": "76 DUP1\n77 PUSH4 0x78375f14\n82 EQ\n83 PUSH2 0x00d9\n86 JUMPI", "size": 150, "truncLabel": "76 DUP1\n77 PUSH4 0x78375f14\n82 EQ\n83 PUSH2 0x00d9\n86 JUMPI"}, {"color": {"background": "#2f7e5b", "border": "#26996f", "highlight": {"background": "#28a16f", "border": "#26996f"}}, "fullLabel": "194 PUSH2 0x00d7\n1
var edges = [{"arrows": "to", "from": "237", "label": "Not(ULE(4, calldatasize_Unknown))", "smooth": {"type": "cubicBezier"}, "to": "238"}, {"arrows": "to", "from": "237", "label": "ULE(4, calldatasize_Unknown)", "smooth": {"type": "cubicBezier"}, "to": "239"}, {"arrows": "to", "from": "239", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x1d4277c", "smooth": {"type": "cubicBezier"}, "to": "240"}, {"arrows": "to", "from": "239", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x1d4277c)", "smooth": {"type": "cubicBezier"}, "to": "241"}, {"arrows": "to", "from": "240", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "242"}, {"arrows": "to", "from": "240", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "243"}, {"arrows": "to", "from": "241", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x546455b5", "smooth": {"type": "cubicBezier"}, "to": "244"}, {"arrows": "to", "from": "241", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x546455b5)", "smooth": {"type": "cubicBezier"}, "to": "245"}, {"arrows": "to", "from": "244", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "246"}, {"arrows": "to", "from": "244", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "247"}, {"arrows": "to", "from": "245", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x78375f14", "smooth": {"type": "cubicBezier"}, "to": "248"}, {"arrows": "to", "from": "245", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x78375f14)", "smooth": {"type": "cubicBezier"}, "to": "249"}, {"arrows": "to", "from": "248", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "250"}, {"arrows": "to", "from": "248", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "251"}, {"arrows": "to", "from": "249", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0x92dd38ea", "smooth": {"type": "cubicBezier"}, "to": "252"}, {"arrows": "to", "from": "249", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0x92dd38ea)", "smooth": {"type": "cubicBezier"}, "to": "253"}, {"arrows": "to", "from": "242", "label": "", "smooth": {"type": "cubicBezier"}, "to": "254"}, {"arrows": "to", "from": "252", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "255"}, {"arrows": "to", "from": "252", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "256"}, {"arrows": "to", "from": "253", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xa08299f1", "smooth": {"type": "cubicBezier"}, "to": "257"}, {"arrows": "to", "from": "253", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0xa08299f1)", "smooth": {"type": "cubicBezier"}, "to": "258"}, {"arrows": "to", "from": "246", "label": "", "smooth": {"type": "cubicBezier"}, "to": "259"}, {"arrows": "to", "from": "257", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "260"}, {"arrows": "to", "from": "257", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "261"}, {"arrows": "to", "from": "258", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0xb34c3610", "smooth": {"type": "cubicBezier"}, "to": "262"}, {"arrows": "to", "from": "258", "label": "Not(Extract(0xff, 0xe0, calldata_Unknown_0) == 0xb34c3610)", "smooth": {"type": "cubicBezier"}, "to": "263"}, {"arrows": "to", "from": "254", "label": "ULE(8, calldata_Unknown_4)", "smooth": {"type": "cubicBezier"}, "to": "264"}, {"arrows": "to", "from": "254", "label": "Not(ULE(8, calldata_Unknown_4))", "smooth": {"type": "cubicBezier"}, "to": "265"}, {"arrows": "to", "from": "264", "label": "", "smooth": {"type": "cubicBezier"}, "to": "266"}, {"arrows": "to", "from": "250", "label": "", "smooth": {"type": "cubicBezier"}, "to": "267"}, {"arrows": "to", "from": "262", "label": "callvalue == 0", "smooth": {"type": "cubicBezier"}, "to": "268"}, {"arrows": "to", "from": "262", "label": "Not(callvalue == 0)", "smooth": {"type": "cubicBezier"}, "to": "269"}, {"arrows": "to", "from": "263", "label": "Extract(0xff, 0xe0, calldata_Unknown_0) == 0
</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>