Code Monkey home page Code Monkey logo

eft_flea_market_bot's Introduction

GitHub Banner

master: https://github.com/yagamiraku/tarkov_flea_bot_toTherapis

fork: https://github.com/astron4ik/tarkov_flea_bot_toTherapis

this fork: https://github.com/Avnsx/EFT_Flea_Market_Bot

UC thread: https://www.unknowncheats.me/forum/escape-from-tarkov/405112-updated-flea-market-bot.html

#Master: yagamiraku | fork: astron4ik | this fork: Avn

Description:

Escape from Tarkov Flea Market Bot

for the homies who live on the edge and for the moment

Installation:

Get python from below https://www.python.org/downloads/release/python-383/ "Windows x86-64 executable installer" from link above make sure to click add to PATH in the python installer also I would recommend doing customized > for all users

install pip through the python installer itself or below https://pip.pypa.io/en/stable/installing/

#Run the commands below in CMD

Requires pip & CMD should be started as Admin

python -m pip install --upgrade pip
pip install requests
pip install pywin32
pip install UnityPy
pip install psutil
pip install --upgrade setuptools

#Download below to be able to use required win32api https://github.com/mhammond/pywin32/releases "pywin32-228.win-amd64-py3.8.exe" from link above for 64-bit Windows & 64-bit Python

#Download Microsoft Build Tools 14.00+ https://go.microsoft.com/fwlink/?LinkId=691126

Used it here for UnityPy it is a 5gb file unluckily; it is apart of the auto update feature for further EFT and Unity Versions basically if Therapist does not get disabled or if they do not patch the way this code gets its PHPSESSID / session token we gucci

#Open EFT Launcher > Settings > and Set "Close Launcher when game starts"

Information to Usage:

this bot should make you up to 2-4 M roubles an hour
you can further edit speed by reducing min_price
the current settings are perfect to do less purchases
and have the most less spent value at the same time

we are aiming to do less purchases because we don't want
our therapist > spent value on trader > to go to absurd
amounts of roubles as it will look illegitimate;
with current default settings you will be profiting around
75 % of the value you are buying and reselling back to trader for.
so let us say you got 2 million spent on therapist during usage;
you will be left back with raw 1.5 million of those 2 million
roubles straight in your inventory

another factor is the time time.sleep(to_wait / 100)
(CTRL + F to find) inside source.py
below 100 to make it slower
above 100 to make it quicker
if you add time.sleep() anywhere it will break
the entire code to the point the session cookie dies
and your bot stops doing purchases completely, due to time outed
session cookie so only edit the already existing
time.sleep(to_wait / 100) (CTRL + F to find)
time.sleep() operates in milliseconds

all you really need to do is go to source.py and start it
that will trigger getPath.py which gets the file paths
and saves it to a file that gets then created as config.ini
this will only be required on the first launch of source.py
afterwards the bsg launcher will open and you may click play

the game client should be launched and automaticaly instantly
closed again, while the bot operates on low cpu usage and tarkov
is closed. during that time, you can go watch videos or go afk.

you can pretty much run this bot 24/7 but i would recommend
2 hour cycles also do not use it during bsg updates such
as server & patch maintenances as bsg will be actively checking
their game for flaws and the requests to their server might
get noticed

Change log compared to older Versions:

  1. heavy visual updates
  2. fixed environment
    • fixed performance
    • crash free
    • smooth overall
    • fixed PHPSESSID fetch to make it more reliable
    • fixed various bugs within certain functions
  3. auto start for bsg launcher
  4. auto fetches client launcher and unity path and versions
    • allowing it to auto update its header request
    • forcing BSG to heavier measures to detect this bot
    • even if updating their game
  5. informative error handling
    • allowing user to understand what is going on
  6. proper instructive README.md

Known Bugs:

  1. on some systems the balance function, seems to be bugged out
    • as long as it says added item it buys the items
    • if it stops saying added item, restart it
    • i could not fix this as it did not occur for me at all

Additional:

  1. whenever you change your BSG folder location you will need to delete config.ini & run getPath.py again
    • it is recommended to delete pycache sometimes if something breaks
  2. you can also start the bot through a cmd popup with the .batch file inside the folder
    • this will delete pycache and clear your dns resolution cache
    • then start the bot in a cmd popout

Ban Risk & Work status:

Detected and patched due to them adding captchas to the eft api. Gave up on this project due to lack of time, prolly easily unpatchable but it's up to you (: If you're going for an unpatch; you have to add all the new auth stuff and also make sure you actually send the new BSGLauncher Useragent for all requests. At the time of writing this all of that didn't exist in first place, so I never had to add them. Unfortunately since I released this bot(first public EFT Flea Market bot ever of it's kind) and all the people that learnt from this bot and made copies of theirs; so these type of bots got lots of attention and they've heavily updated and started checking through all their received requests. I do no longer develop updates for this bot please stop asking. On the 11th of January 2021, was the last person that contacted me saying that he had ran the bot and apparently it still worked for him for a good week generating 10M until he got banned.

Uninstall:

You no longer wish to use this bot? check this article out on how to uninstall files: https://support.microsoft.com/en-us/windows/uninstall-or-remove-apps-and-programs-in-windows-10-4b55f974-2cc6-2d2b-d092-5905080eaf98

the file names are Python 3.8 pywin32-228, Microsoft Visual C++ Build Tools, Python 3.8 (64-bit) & Python Launcher

to delete the bot itsself; go to the download location and simply delete the folder "EFT_Flea_Market_Bot"

eft_flea_market_bot's People

Contributors

avnsx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eft_flea_market_bot's Issues

getPath.py takes a really long time

It scans my C:\ drive and I have EFT installed on the F:\ drive. When I put the bot folder on F:\ then it didn't work after launching getPath.py. The ClickToStartWithCMD.bat just launched two windows and died. Any help?

Crash on Boot

When the exe is executed it causes the game launcher to open. However, when the game is launched it crashes, thank you for your time.

pls help

[LOG:] Bought 5ad5d64486f774079b080af8 [ Key_Shopping_Mall_pharmacy ] at 45000 / 60750
Waited 0.07870991706848145 Seconds before purchase
Purchase Success ... ADDED ITEM
| Stonks: + 15,750 ₽ |
[10:27:03] Balance: 2,071,274 ₽

[LOG:] Bought 5780cf942459777df90dcb72 [ Room 214 Key ] at 23500 / 31500
Waited 0.19077714681625366 Seconds before purchase
Purchase Success ... ADDED ITEM
| Stonks: + 8,000 ₽ |
[10:27:07] Balance: 2,072,974 ₽

[LOG:] Bought 5c052fb986f7746b2101e909 [ Item_barter_electr_rfidreader ] at 26666 / 36000
Purchase Success ... ADDED ITEM
| Stonks: + 9,334 ₽ |
[10:27:14] Balance: 2,075,108 ₽

[LOG:] Bought 5d1b304286f774253763a528 [ item_barter_electr_lcd_Clean ] at 21420 / 28500
Waited 0.45224484205245974 Seconds before purchase

[LOG:] Bought 5c0e533786f7747fa23f4d47 [ Загустин ] at 14111 / 19350
Waited 0.4721504497528076 Seconds before purchase

[LOG:] Bought 5900b89686f7744e704a8747 [ Woods Plan ] at 6000 / 9539

it works for the first 5-10 seconds then it goes like this

[LOG:] Bought 590c5a7286f7747884343aea [ Gunpowder ] at 7000 / 10500
Waited 0.20790847778320312 Seconds before purchase

[LOG:] Bought 59e361e886f774176c10a2a5 [ h2o2 ] at 6000 / 9126
Waited 0.5606361937522888 Seconds before purchase

[INFO:] Next Iteration with token: 0c8f16ac4c871f3a0c6656d7d8f15fb2
Wishlist currently includes: 317 items!

[LOG:] Bought 5c052e6986f7746b207bc3c9 [ Item_barter_medical_defibrillator ] at 133000 / 168450
Waited 0.5105698466300964 Seconds before purchase

[LOG:] Bought 5bc9bdb8d4351e003562b8a1 [ item_barter_valuable_elibadge ] at 34000 / 45217
Waited 0.39414013862609865 Seconds before purchase

[LOG:] Bought 5bc9bdb8d4351e003562b8a1 [ item_barter_valuable_elibadge ] at 34500 / 45217

[LOG:] Bought 5c052fb986f7746b2101e909 [ Item_barter_electr_rfidreader ] at 27000 / 36000

[LOG:] Bought 5734758f24597738025ee253 [ Golden neck chain ] at 21000 / 28632
Waited 0.44731056213378906 Seconds before purchase

[LOG:] Bought 5780d0532459777a5108b9a2 [ Office key ] at 5000 / 8330
Waited 0.12804024934768676 Seconds before purchase

[LOG:] Bought 5900b89686f7744e704a8747 [ Woods Plan ] at 6000 / 9539

ERROR 1500

Everytime i run the bot it attempts to purchase a item but just gives "[LOG:] Bought 5ad7217186f7746744498875 [ Key_cash_machine_OLI ] at 45000 / 60000
Waited 0.44726455211639404 Seconds before purchase
[ERROR:] 1500"

losing roubles

Sorry for bothering again , managed to get it working but after running it for 45 mins i went on to check how it was doing and was down -500k roubles not sure if thats meant to happen

getToken.py - does not kill all the specified processes

When you receive a token, you look for the remaining pID for the processes, and a command is generated only to close the last process.

You need to add a variable for the kill commands of other processes by pid

Example:

token = psutil.Process(getProcessPID('EscapeFromTarkov_BE.exe')).cmdline()[3][7:]
pID = getProcessPID('EscapeFromTarkov_BE.exe')
command_tarkovBE = 'taskkill /PID ' + str(pID) + ' /f'
time.sleep(0.33)

pID = getProcessPID('EscapeFromTarkov.exe')
command_tarkov = 'taskkill /PID ' + str(pID) + ' /f'
time.sleep(0.33)

pID = getProcessPID('UnityCrashHandler64.exe')
command_unity = 'taskkill /PID ' + str(pID) + ' /f'

*** In the token found change the functions to kill, according to the received commands ***

subprocess.Popen(command_tarkovBE, stdout=DEVNULL, stderr=DEVNULL)
subprocess.Popen(command_tarkov, stdout=DEVNULL, stderr=DEVNULL)
subprocess.Popen(command_unity, stdout=DEVNULL, stderr=DEVNULL)

And you can also describe a common function to kill processes, but it is up to you.

PS Sorry for my bad English, I use a translator. If you need help with adjustment getToken.py, please contact me.

bot doesnt actually buy or sell anything.

Everytime i run the bot it just says it bought something waited x amount of time before purchasing and then will say the same thing about a different item next , it never actually purchases any of the items.
"
[LOG:] Bought 5bc9be8fd4351e00334cae6e [ item_barter_other_tea ] at 14500 / 20815
Waited 0.3979831266403198 Seconds before purchase

[LOG:] Bought 5d1b39a386f774252339976f [ item_barter_building_silicontube ] at 10000 / 14175
Waited 0.5372608637809754 Seconds before purchase

[INFO:] Next Iteration with token:
Wishlist currently includes: 317 items!"

Error upon start

When ever i try to run this, i get this error:
Traceback (most recent call last):
File "C:\Users\Capta\Desktop\EFT_Flea_Market_Bot-master\source.py", line 54, in
UnityVersion = UnityPy.load(config['DEFAULT']['unitypath']).objects[0].assets_file.unity_version
File "C:\Program Files\Python38\lib\site-packages\UnityPy_init_.py", line 5, in load
return Environment(*args)
File "C:\Program Files\Python38\lib\site-packages\UnityPy\environment.py", line 32, in init
self.load_file(arg)
File "C:\Program Files\Python38\lib\site-packages\UnityPy\environment.py", line 74, in load_file
self.files[full_name] = files.SerializedFile(reader, self)
File "C:\Program Files\Python38\lib\site-packages\UnityPy\files\SerializedFile.py", line 214, in init
self.unknown = reader.ReadInt32()
AttributeError: 'EndianBinaryReader' object has no attribute 'ReadInt32'

Tnx 4 all the help i can get! :)

Add me! Also I wanna help you! - Null#6235

I added you on discord, also I wanna help you code it better and update it with you. Null#6235 - I wanna make it look nice etc. I've been experimenting with it making it look better you know. Alright, just hit me up whenever if you want. Btw I don't fully know how to code, but I've done it enough to understand mostly what's going on and code shit etc.

Bot no work

Now such a mistake, I open it immediately closes

Traceback (last call was last):
File "C: \ EFT_Flea_Market_Bot-master \ source.py", line 281, in
subprocess.Popen (startlauncher)
File "C: \ Program Files (x86) \ Python38-32 \ lib \ subprocess.py", line 854, in init
self._execute_child (args, executable, preexec_fn, close_fds,
File "C: \ Program Files (x86) \ Python38-32 \ lib \ subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess (executable file, arguments,
OSError: [WinError 740]

Error i get when starting the client

[INFO:] Welcome to Developer Version 0.3 for Game Client Version 0.12.6.8026 on Unity Engine Version 2018.4.13f1
[INFO:] This github fork was developed by Avn @ unknowncheats. Additionaly huge thanks to yagamiraku & astron4ik!
[INFO:] The last manual update to this code was on 07/01/2020 by Avn unknowncheats.me/forum/members/2564688.html
[LOG:] Loaded List: Wishlist
[LOG:] Loaded List: Complete Entry
[LOG:] Launching and waiting for the Escape from Tarkov Client...

[INFO:] Starting with token:
[14:44:51] Balance: 0 ₽
Traceback (most recent call last):
File "C:\Users\joe\Desktop\EFT_Flea_Market_Bot-master\EFT_Flea_Market_Bot-master\source.py", line 468, in
for trader in traders_list:
TypeError: 'NoneType' object is not iterable

Losing Money + Added Item Gone

Seems that purchasing items only loses main balance. Haven't had a item that made me money so far.
Also, there seems to be a bug that after 30 seconds, it stops actually buying the items since the "Added Item" notification is gone. This is on Windows 10 ver 1909

[LOG:] Bought 5c1e2a1e86f77431ea0ea84c [ item_lab_glass_office ] at 88000 / 93465
Waited 0.4769145178794861 Seconds before purchase
Purchase Success ... ADDED ITEM
| Stonks: + 5,465 ₽ |
[19:54:25] Balance: 2,765,343 ₽

[LOG:] Bought 5c1e2a1e86f77431ea0ea84c [ item_lab_glass_office ] at 89500 / 93465
Purchase Success ... ADDED ITEM
| Stonks: + 3,965 ₽ |
[19:54:26] Balance: 2,675,843 ₽

[LOG:] Bought 5c1e2a1e86f77431ea0ea84c [ item_lab_glass_office ] at 90000 / 93465
Purchase Success ... ADDED ITEM
| Stonks: + 3,465 ₽ |
[19:54:26] Balance: 2,735,387 ₽

[LOG:] Bought 5a1452ee86f7746f33111763 [ San 222 Key ] at 77700 / 79222
Purchase Success ... ADDED ITEM
| Stonks: + 1,522 ₽ |
[19:54:27] Balance: 2,721,065 ₽

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.