This script automatically runs and manages your AM4 account.
- NodeJS
- NPM (should install with NodeJS so no need to manually install)
- Download this code.
- Create a folder and move the JS file to it.
- CD to the folder in terminal:
cd <folder_name>
- Initialize Node project:
npm init -y
- Please follow the ## SESS ID instructions.
- run
npm i jsdom twilio node-fetch
- Once CDed into the folder run
node AM4.js
For this step you will need to have BurpSuite community edition installed and running on your computer. Make sure your phone and computer are on the same network (2.4 or 5 does not matter).
- Open a new empty BurpSuite project
- Click the "Proxy" tab, then the "Options" tab
- Under "Proxy Listeners" select the only item and press the "Edit" button
- Under the "Binding" then "Bind to address" section, select "All interfaces"
- Press "Ok" to save the settings
I only have instructions for iPhone at the moment. You can do this on Android too but you'll have to figure it out yourself.
- Open "Settings" app then "WiFi" then press the "i" icon next to your connected network
- Make sure you are on the same network as your computer.
- Scroll to the bottom and select "Configure Proxy"
- Select the "Manual" option
- For the server, input your computers local IP Address. This can be found in your computer settings. It should look like "192.168.x.x"
- For the port, put 8080, or if you changed it in BurpSuite settings, put that port.
- Open safari and navigate to http://burp
- Press the "Download Certificate" button and allow the install
- Open settings app again and navigate "General" > "VPN & Device Management" > "PortSwigger CA" and install it.
- Go back to "General" settings then > "About" > "Certificate Trust Settings" (at the bottom) > and enable "PortSwigger CA"
You should now be able to make requests and intercept them on your computer.
- Open the AM4 after setting up the proxy and press any tab, like the settings or fuel popup
- Open BurpSuite again then "Proxy" then "HTTP History"
- Find a request made to "am4.pagespeedster.com"
- Press and inspect the request until you see the cookies. Find the "PHPSESSID" cookie, that is your AM4 session ID.
- Lastly, go to line 24 of the JS file and fill the string with your session ID.
- Finally, go back to step six of ## Setup
This step is completely optional. You do not need to follow this step if you don't want.
- Signup for Twilio
- Get a phone number and create a messaging service for that phone number.
- Go to lines 40, 41, and 42 and input the credentials.
- Go to line 35 and input your phone number. Make sure to include + and country code!
- Restart the server
I replaced the run game const with these 2 functions
function fuelUp(){ update(
Fuel up at: ${Date()}`);checkFuel();
checkCo2();
setTimeout(fuelUp,1800000)
}
function runnerUp() {
update(
Takeoff at: ${Date()}
);checkFlights();
checkFuel();
checkCo2();
performMaintenance();
setTimeout(runnerUp,300000+420000*Math.random())
}
//runGame();
fuelUp();
runnerUp();
//checkFlights();
//performMaintenance();
//checkFuel();
//checkCo2();`