Jump to content
Sign in to follow this  
BatMan22

Passwords and filenames with special characters

Recommended Posts

BatMan22

So basically I'm trying to automate signing of iOS apps to your iphone with cydia impactor, if you don't have a apple dev account (99$ a year) then your process for signing apps is... annoying to say the least. Retype in login name and password every-time. So what I am trying to do is save my username/password to a .ini then access it as a variable, unfortunately passwords with special characters will yield errors... ie !, $, %, & ect ect. Help? Also files that I drag onto my program ($CmdLine[1]) will also yield errors if the names have special characters. Help :)

 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****


$username = IniRead("settingsforloader.ini", "section", "username", "NotFound")
$password = IniRead("settingsforloader.ini", "section", "password", "NotFound")
Global $draggedfile, $locationcheck, $buttonclicked, $impactorfolder=@DesktopDir & "\Impactor\", $impactorlocation=@DesktopDir &"\Impactor\Impactor.exe"
If $CmdLine[0] = 0 Then
    MsgBox(0, "ERROR", "DRAG AND DROP THE IPA FILE YOU WANT TO INSTALL ON ME!")
    Break
EndIf

If $CmdLine[0] <> 0 Then $draggedfile=$CmdLine[1]
$locationcheck = FileExists($impactorlocation)
If $locationcheck=0 Then
        MsgBox(0, "", "The file doesn't exist." & @CRLF & "FileExist returned: " & $locationcheck)
        Break
EndIf

ShellExecute(@DesktopDir &"\Impactor\Impactor.exe")
WinWait("Cydia Impactor")
WinActivate("Cydia Impactor")
Sleep(100)
Send("{ALTDOWN}")
Send("DI")
Sleep(1000)
Send("N")
Sleep(100)
Send("{ALTUP}")
Send($draggedfile)
Send("{ALTDOWN}")
Send("O")
Send("{ALTUP}")
Sleep("100")
WinWait("Apple")
WinActivate("Apple")
Send($username)
Send("{ENTER}")
WinWait("Apple ID Password")
WinActivate("Apple ID Password")
Send($password)
Send("{ENTER}")

The INI file is just:

[section]
username=username@domain.com
password=blah!@#%$^&*((blahblah

 

Edited by BatMan22

Share this post


Link to post
Share on other sites
JLogan3o13

Look at the second parameter for Send. If you use 1 the keys will be sent raw


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.