Open neohunter opened 8 years ago
Same on windows :
File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary return self._dlltype(name) File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] Le module spÚcifiÚ est introuvable
What encrypt.dll we should use ?
From the announcement:
To clarify, we didn't get a C&D and took down the repo to prevent legal issues before release. Code to actually implement what we have found is being worked on. Only encrypt.c, rewrites of encrypt.c, and compiled versions of encrypt.c are copyrighted by Niantic and we cannot legally distribute it in any way, even if rewritten. We have thus taken down the repo while we figure out a solution to this. This does not mean that we will not release. We will come up with a solution to the copyright issue, please be patient.
A little birdy told me until further updates come one could stumble upon such files needed at sites like.... Windows EXE: https://www.sendspace.com/file/bq0hcn Source: http://pastebin.com/raw/fCSw0Fz4
Ubuntu 14 64:
apt-get install g++ build-essential
curl http://pastebin.com/raw/fCSw0Fz4 -o encrypt.c
echo '#define __STDC_LIMIT_MACROS' | cat - encrypt.c > temp && mv temp encrypt.c
g++ -shared -fPIC encrypt.c
mv a.out encrypt.dll
cp encrypt.dll /usr/local/lib/encrypt.dll
export LD_LIBRARY_PATH=/usr/local/lib
python pokecli.py -a ptc -u blah -p blah --location 'London'
Put encrypt here: Linux: /usr/local/lib ?? Windows: system32 ???
This is just here for learning purpose i dont know who uploaded files, a member of the community on the communication channels. I am simply sharing public knowledge one can find anywhere.
@scottie Where shall we place that dll??
I got AttributeError: ./encrypt.dll: undefined symbol: encrypt.
Solved. Probably need to update that source file with adding
extern "C"
infront of int encrypt
so it is
extern "C" int encrypt
Then follow scottie's instruction again.
@scottie So do I just copy and paste apt-get install g++ build-essential curl http://pastebin.com/raw/fCSw0Fz4 -o encrypt.c echo '#define __STDC_LIMIT_MACROS' | cat - encrypt.c > temp && mv temp encrypt.c g++ -shared -fPIC encrypt.c mv a.out encrypt.dll cp encrypt.dll /usr/local/lib/encrypt.dll export LD_LIBRARY_PATH=/usr/local/lib python pokecli.py -a ptc -u blah -p blah --location 'London'
into my Digital Ocean Droplet and then run the code?
I keep getting
File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found
Anyone knows what to do?
Forget it, i just figured out. Needed to modify the location
Has anyone got it working on mac?
@blackhattristar Yes, i have it working on a Mac. Use the commands @scottie listed and it will work. You must skip the first line and install XCode tools if you haven't already (it includes g++). Or Google on how to install g++ for Mac.
2016-08-07 14:22:28,576 [ search_worker_2][ search][ WARNING] Exception while downloading map: /PokemonGo-Map-develop/pogom/libencrypt.so: wrong ELF class: ELFCLASS64
why??
@itztq You need to compile for 32 bit
@jfla15 how?
So I compiled encrypt.dll successfully (or certainly with no errors), but Im getting when running pokecli.py:
AttributeError: /usr/local/lib/encrypt.dll: undefined symbol: encrypt
Any thoughts?
You have a DLL that has different method names than expected. Please see #197.
I am on windows. Can someone send me the .dll?
I already compile it for Windows, the easy way is to download MinGW / Clion, create a new proyect and your cmake should be something like this
cmake_minimum_required(VERSION 3.6)
project(encrypt)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -static")
set(SOURCE_FILES main.c encrypt.c)
ADD_LIBRARY(encrypt SHARED ${SOURCE_FILES})
Hit build and copy libEncrypt.dll as encrypt.dll
That worked to compile but it's not working now anyway it appears. I am getting unknown 6 error now.
On OSX El Capitan with pyenv
With HEAD: