Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Removed submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
marbink committed Nov 13, 2016
1 parent 0046874 commit 46b1a5f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "pokecrypt-pgoapi"]
path = pokecrypt-pgoapi
url = https://github.com/pokecrypt/pokecrypt-pgoapi
48 changes: 0 additions & 48 deletions pogo-captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,53 +78,6 @@ def openurl(address):
print_error("Request to " + address + "failed.")
return "Failed"

def get_encryption_lib_path():

# win32 doesn't mean necessarily 32 bits
if sys.platform == "win32" or sys.platform == "cygwin":
if platform.architecture()[0] == '64bit':
lib_name = "encrypt64.dll"
else:
lib_name = "encrypt32.dll"

elif sys.platform == "darwin":
lib_name = "libencrypt-osx-64.so"

elif os.uname()[4].startswith("arm") and platform.architecture()[0] == '32bit':
lib_name = "libencrypt-linux-arm-32.so"

elif os.uname()[4].startswith("aarch64") and platform.architecture()[0] == '64bit':
lib_name = "libencrypt-linux-arm-64.so"

elif sys.platform.startswith('linux'):
if "centos" in platform.platform():
if platform.architecture()[0] == '64bit':
lib_name = "libencrypt-centos-x86-64.so"
else:
lib_name = "libencrypt-linux-x86-32.so"
else:
if platform.architecture()[0] == '64bit':
lib_name = "libencrypt-linux-x86-64.so"
else:
lib_name = "libencrypt-linux-x86-32.so"

elif sys.platform.startswith('freebsd'):
lib_name = "libencrypt-freebsd-64.so"

else:
err = "Unexpected/unsupported platform '{}'. If you have encrypt lib compiled for your platform, specify its location with '--encrypt-lib' parameter".format(sys.platform)
print_error(err)
raise Exception(err)

lib_path = os.path.join(os.path.dirname(__file__), "pokecrypt-pgoapi", lib_name)

if not os.path.isfile(lib_path):
err = "Could not find {} encryption library {}".format(sys.platform, lib_path)
print_error(err)
raise Exception(err)

return lib_path


def activateUser(api, captchatoken, username):
print_debug("Recaptcha token: {}".format(captchatoken), username)
Expand All @@ -144,7 +97,6 @@ def solveCaptchas(mode, username, password, location, captchakey2):
api = PGoApi()
if config.proxy:
api.set_proxy({'http': config.proxy, 'https': config.proxy}) #Need this? Proxy is not setted with set_authentication?
api.activate_signature(get_encryption_lib_path())
api.set_position(float(location[0]), float(location[1]), 0.0)

# Try to login (a few times, but don't get stuck here)
Expand Down
1 change: 0 additions & 1 deletion pokecrypt-pgoapi
Submodule pokecrypt-pgoapi deleted from 48cb37

0 comments on commit 46b1a5f

Please sign in to comment.