Sign in to follow this  
Followers 0
sixes99

Keystroke entering script needed or help required

11 posts in this topic

Hi all, I thought id ask for a little bit of help (alot actually)

Im after info / guidance or to be pointed in the right direction for a script or something that will fix the problem I have.

I have a car which has an EFI computer. The computer is locked with a program called EFILive. It is locked with an alphanumeric code consisting of 4, possibly 5 characters. The reason it is lock is because of a custom tuner has put a lock on it so no one else can edit the tune which is fine if the car doesnt get altered. I want to edit the tune due to factors of changing the components within the motor therefore the current tune will not work so I need to edit it. The tuner will not give me the code and I am now stuck (after paying $1000 to have it tuned in the first place)

I have the software to edit the tune (efilive.com). The software uses a black box connected from the laptop to the car via the OBD2 connection port. I purchased the software and black box / cable so I can edit the tune.

Im seeking a script of some sort that will enter the 4 character code into the dialogue box in the menu screen. If it doesnt work, it will then need to cancel the shutdown and try again. aaaa, aaab, aaac etc im guessing will be they way to run it. If the code works, It should be able to log what code did work so I can then start to edit the tune to they way I would like it. I realise this may take days but I have the time to wait as this is a "must have"

If anyone can help or put me in the right direction, it would be greatly appreciated. I can provide plenty more information on request.

I have bugger all knowledge on setting up scripting so I apologise for the request and really didnt know where else I could try.

Regards

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try _StringSplit()

Does it use numbers?

then...try this password generater put 4into the box..it will generate passwords with 4 letters...

I need more information to help make this...but you would probably want

something...that will generater a password...using a-z and 0-9 and try it until it logs in.

so maybe...

[s]While 1
$the = _StringSplit(abcdefghijklmnopqrstuvwxyz0123456789)
Sleep(1000)
Send($the)
WEnd[/s]

That might work...havnt tried..and im not very experiencded

here:

password generater

#include <GUIConstants.au3>

$GUI = GUICreate("Password Generator", 350, 255, -1, -1)
$Label_1 = GUICtrlCreateLabel("Generated Password:", 10, 10, 130, 15)
$Input_1 = GUICtrlCreateInput("", 10, 30, 100, 20, BitOR($ES_AUTOHSCROLL,$ES_READONLY))
$Button_1 = GUICtrlCreateButton("Generate Pass", 10, 61, 90, 30)
$Button_2 = GUICtrlCreateButton("Clear", 100, 61, 40, 30)
$Button_3 = GUICtrlCreateButton("Copy", 140, 61, 40, 30)
$Credits = GUICtrlCreateButton("Credits", 120, 28, 60, 24)
$Label_2 = GUICtrlCreateLabel("How many chars should the password be?", 10, 95, 170, 30)
$Input_2 = GUICtrlCreateInput("7", 10, 130, 170, 20)
$Edit_1 = GUICtrlCreateEdit("", 190, 30, 150, 185, BitOR($ES_AUTOVSCROLL, $ES_READONLY))
$Label_3 = GUICtrlCreateLabel("Passwords", 190, 10, 50, 15)
$Label_4 = GUICtrlCreateLabel("Include this special chars:", 10, 155)
$Checkbox_1 = GUICtrlCreateCheckbox("!", 10, 170)
$Checkbox_2 = GUICtrlCreateCheckbox("@", 10, 190)
$Checkbox_3 = GUICtrlCreateCheckbox("#", 10, 210)
$Checkbox_4 = GUICtrlCreateCheckbox("$", 10, 230)
$Checkbox_5 = GUICtrlCreateCheckbox("%", 50, 170)
$Checkbox_6 = GUICtrlCreateCheckbox("*", 50, 190)
$Checkbox_7 = GUICtrlCreateCheckbox("(", 50, 210)
$Checkbox_8 = GUICtrlCreateCheckbox(")", 50, 230)
$Checkbox_9 = GUICtrlCreateCheckbox("-", 90, 170)
$Checkbox_10 = GUICtrlCreateCheckbox("=", 90, 190)
$Checkbox_11 = GUICtrlCreateCheckbox("+", 90, 210)
$Checkbox_12 = GUICtrlCreateCheckbox("[", 90, 230)
$Checkbox_13 = GUICtrlCreateCheckbox("]", 130, 170)
$Checkbox_14 = GUICtrlCreateCheckbox("\", 130, 190)
$Checkbox_15 = GUICtrlCreateCheckbox("/", 130, 210)
$Checkbox_16 = GUICtrlCreateCheckbox("?", 130, 230)
$Button_4 = GUICtrlCreateButton("Save History", 190, 221, 151)
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
Exit
Case $nMsg = $Button_1
$Read_Char = GUICtrlRead($Input_2)
_Randomize($Read_Char)
GUICtrlSetData($Edit_1, _Randomize($Read_Char) & @CRLF, "|")
Case $nMsg = $Button_2
$Check_Yes_No = MsgBox(4, "Clear History", "Clear History?")
If $Check_Yes_No = 6 Then
GUICtrlSetData($Edit_1, "", "")
EndIf
Case $nMsg = $Button_3
$READ = GUICtrlRead($Input_1)
ClipPut($READ)
Case $nMsg = $Credits
_Credits()
Case $nMsg = $Button_4
    $EDIT_READ = GUICtrlRead($Edit_1)
    IniWriteSection(@ScriptDir & "\Passwords.ini", "Passwords", $EDIT_READ)
EndSelect
WEnd

Func _Randomize($Length)

    $AddSpecial = ""
    $SpecialChars = StringSplit("!@#$%*()-=+[]\/?", "")

    For $X = 1 to $specialChars[0]
        If GUICtrlRead(Eval("Checkbox_" & $X)) = 1 Then
            $AddSpecial &= $SpecialChars[$X]
        EndIf
    Next

    $Array = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" & $AddSpecial,"")
   
    $Pass = ""
    For $X = 1 to $Length
        $Pass &= $Array[Random (1, $Array[0], 1)]
    Next
    GUICtrlSetData($Input_1, $Pass)
    Return $Pass
EndFunc

Func _Credits()
    GUISetState(@SW_HIDE, $GUI)
    $AboutWindow = GUICreate("Credits", 250, 200)
    $ProgramName = GUICtrlCreateLabel("Password Generator", 85, 26)
    $ProgramDescription = GUICtrlCreateEdit("Credits:" & @CRLF & @CRLF & "Scripter: Swift" & @CRLF & "Idea: Swift", 20, 60, 210, 126, BitOR($ES_READONLY, $ES_WANTRETURN))

    GUISetState(@SW_SHOW)
    While 2
        $nMsg2 = GUIGetMsg()
        Select
            Case $nMsg2 = $GUI_EVENT_CLOSE
                ExitLoop
        EndSelect
    WEnd
    GUIDelete($AboutWindow)
    GUISetState(@SW_SHOW, $GUI)
EndFunc
GUISetState()
Edited by Swift

Share this post


Link to post
Share on other sites

Here is a password generator:

Func _PasswordGenerator($Length)
      $Password = "" 
      $String = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789")
       For $I = 1 to $Length
            $Password &= $String[Random(1, 61, 1)]
       Next
       Return $Password
EndFunc

Share this post


Link to post
Share on other sites

Instead of random maybe you should have things accend because that way you will find the number sooner or later....


[center][/center]

Share this post


Link to post
Share on other sites

How?

Share this post


Link to post
Share on other sites

I may get around to writing you something tonight

but don't count on it...

I'm sure others could help you


[center][/center]

Share this post


Link to post
Share on other sites

That would be great, I can wait as its been 6 months since I started dealing with the person who tuned the car.

Ill post up some screen shots of the program so you all get an idea of what im after.

Thanks

Share this post


Link to post
Share on other sites

This is the screen I am working with, In the main box is shown "Key" (above the black area) This is the box where the pass goes into. The START button is then clicked and the program on the laptop communicates with the computer in the car and checks is the pass is correct or not. This takes about 6 seconds;

Posted Image

This is the next box to be shown. A passwork of "aaaa" was used and the program tells me that its incorrect. The OK button is then clicked;

Posted Image

After that, the shutdown screen appears and the STOP button is clicked. The program will give 15 seconds and will restart but it can be interrupted by using the STOP button. When that is clicked, it will go back to looking the same as the first pic to enter in a new password.

Posted Image

Share this post


Link to post
Share on other sites

can you use the AutoIt information tool to find information on all the buttons I will need to use. Also provide the titles of each window. I will try to help as much as possible. But tommorrow during the morning and maybe afternoon I have to deal with scavanging through what is left of my home. It burnt down on the 2nd so just be patient with me. Thanks!!!


[center][/center]

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Mate, this is the last thing you need to worry about. Get your stuff sorted out first!! Hope all gets worked out for the best. I lost all my stuff too a few years ago so I know how you must be.

Thanks again for your help, it is appreciated.

Posted Image

Main window (as above)

>>>> Window <<<<

Title: EFILive Tune V7.4

Class: TfMainTune

Position: -4, -4

Size: 1288, 778

Style: 0x1FCF0000

ExStyle: 0x00010100

Handle: 0x00060460

>>>> Control <<<<

Class: MDIClient

Instance: 1

ClassnameNN: MDIClient1

ID:

Text:

Position: 281, 56

Size: 999, 649

ControlClick Coords: 38, 23

Style: 0x56030001

ExStyle: 0x00000200

Handle: 0x001104CE

>>>> Mouse <<<<

Position: 319, 125

Cursor ID: 0

Color: 0x808080

>>>> StatusBar <<<<

>>>> Visible Text <<<<

RoadRunner

tbHelp

tbFlash

Edit

File

Select calibrations from the navigator in the left hand panel of the main window.

Or enter one or more search terms and click [search].

The navigator may be closed when not in use. Press Ctrl+F1 to redisplay the navigator if it has been hidden.

Calibrations

?

(All)

X

Search

>>>> Hidden Text <<<<

Favorites

Key (Password box)

>>>> Window <<<<

Title: Read PCM calibrations

Class: TfUpload

Position: 324, 115

Size: 640, 540

Style: 0x96000000

ExStyle: 0x00010000

Handle: 0x00230510

>>>> Control <<<<

Class: TLabeledEdit

Instance: 1

ClassnameNN: TLabeledEdit1

ID: 329140

Text:

Position: 40, 12

Size: 65, 24

ControlClick Coords: 33, 11

Style: 0x540100C0

ExStyle: 0x00000200

Handle: 0x000505B4

>>>> Mouse <<<<

Position: 401, 142

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

>>>> Visible Text <<<<

Stop

Start

Close

Check status

99+ GEN-III

Use high speed

>>>> Hidden Text <<<<

14

OK Button in the error box

>>>> Window <<<<

Title: Error

Class: TMessageForm

Position: 407, 273

Size: 466, 253

Style: 0x96C80000

ExStyle: 0x00000101

Handle: 0x001F0580

>>>> Control <<<<

Class: TButton

Instance: 1

ClassnameNN: TButton1

ID: 984594

Text: OK

Position: 198, 185

Size: 63, 23

ControlClick Coords: 30, 11

Style: 0x54010001

ExStyle: 0x00000000

Handle: 0x000F0612

>>>> Mouse <<<<

Position: 638, 498

Cursor ID: 0

Color: 0x000000

>>>> StatusBar <<<<

>>>> Visible Text <<<<

OK

>>>> Hidden Text <<<<

START Button

>>>> Window <<<<

Title: Read PCM calibrations

Class: TfUpload

Position: 324, 115

Size: 640, 540

Style: 0x9E000000

ExStyle: 0x00010000

Handle: 0x00230510

>>>> Control <<<<

Class: TButton

Instance: 2

ClassnameNN: TButton2

ID: 329106

Text: Start

Position: 4, 499

Size: 89, 29

ControlClick Coords: 43, 14

Style: 0x5C010000

ExStyle: 0x00000000

Handle: 0x00050592

>>>> Mouse <<<<

Position: 375, 632

Cursor ID: 0

Color: 0xF5F4EA

>>>> StatusBar <<<<

>>>> Visible Text <<<<

16:42:48.562: Scanning for EFILive FlashScan V1 USB

16:42:48.593: Current protocol set to: "SAE J1850 VPW"

16:42:49.000: Interface firmware version: 1.2.17

16:42:49.046: Interface firmware model: FSP

16:42:49.062: Interface firmware version: 1.2.17

16:42:49.078: Interface firmware date: Jan 18, 2005

16:42:49.093: FlashScan serial number:

16:42:49.109: Disconnecting ...

16:42:49.140: Disconnected

16:42:49.656: Scanning for EFILive FlashScan V1 USB

16:42:49.687: Current protocol set to: "SAE J1850 VPW"

16:42:50.093: Interface firmware version: 1.2.17

16:42:50.656: Current protocol: "SAE J1850 VPW"

16:42:50.687: Interface firmware model: FSP

16:42:50.703: Interface firmware version: 1.2.17

16:42:50.718: Interface firmware date: Jan 18, 2005

16:42:50.750: FlashScan serial number:

16:42:50.843: Getting status...

16:42:50.890: Status: OK.

16:42:51.796: Bootloader version: LS1B_v1.6R (04D2-6318)

16:42:51.796: Preparing PCM for reading flash...

16:42:51.843: PCM seed is: $0A69

16:42:52.218: Disconnecting ...

16:42:52.250: Disconnected

16:43:28.296: Done!

16:46:58.859: Scanning for EFILive FlashScan V1 USB

16:46:58.906: Current protocol set to: "SAE J1850 VPW"

16:46:59.312: Interface firmware version: 1.2.17

16:46:59.343: Interface firmware model: FSP

16:46:59.359: Interface firmware version: 1.2.17

16:46:59.375: Interface firmware date: Jan 18, 2005

16:46:59.390: FlashScan serial number:

16:46:59.421: Disconnecting ...

16:46:59.437: Disconnected

Stop

Start

Close

Check status

99+ GEN-III

9

Use high speed

>>>> Hidden Text <<<<

13

STOP Button

>>>> Window <<<<

Title: Read PCM calibrations

Class: TfUpload

Position: 324, 115

Size: 640, 540

Style: 0x9E000000

ExStyle: 0x00010000

Handle: 0x00230510

>>>> Control <<<<

Class: TButton

Instance: 1

ClassnameNN: TButton1

ID: 329108

Text: Stop

Position: 104, 499

Size: 89, 29

ControlClick Coords: 43, 14

Style: 0x54010000

ExStyle: 0x00000000

Handle: 0x00050594

>>>> Mouse <<<<

Position: 475, 632

Cursor ID: 0

Color: 0xF3F3EF

>>>> StatusBar <<<<

>>>> Visible Text <<<<

16:42:48.562: Scanning for EFILive FlashScan V1 USB

16:42:48.593: Current protocol set to: "SAE J1850 VPW"

16:42:49.000: Interface firmware version: 1.2.17

16:42:49.046: Interface firmware model: FSP

16:42:49.062: Interface firmware version: 1.2.17

16:42:49.078: Interface firmware date: Jan 18, 2005

16:42:49.093: FlashScan serial number:

16:42:49.109: Disconnecting ...

16:42:49.140: Disconnected

16:42:49.656: Scanning for EFILive FlashScan V1 USB

16:42:49.687: Current protocol set to: "SAE J1850 VPW"

16:42:50.093: Interface firmware version: 1.2.17

16:42:50.656: Current protocol: "SAE J1850 VPW"

16:42:50.687: Interface firmware model: FSP

16:42:50.703: Interface firmware version: 1.2.17

16:42:50.718: Interface firmware date: Jan 18, 2005

16:42:50.750: FlashScan serial number:

16:42:50.843: Getting status...

16:42:50.890: Status: OK.

16:42:51.796: Bootloader version: LS1B_v1.6R (04D2-6318)

16:42:51.796: Preparing PCM for reading flash...

16:42:51.843: PCM seed is: $0A69

16:42:52.218: Disconnecting ...

16:42:52.250: Disconnected

16:43:28.296: Done!

16:46:58.859: Scanning for EFILive FlashScan V1 USB

16:46:58.906: Current protocol set to: "SAE J1850 VPW"

16:46:59.312: Interface firmware version: 1.2.17

16:46:59.343: Interface firmware model: FSP

16:46:59.359: Interface firmware version: 1.2.17

16:46:59.375: Interface firmware date: Jan 18, 2005

16:46:59.390: FlashScan serial number:

16:46:59.421: Disconnecting ...

16:46:59.437: Disconnected

Stop

Start

Close

Check status

99+ GEN-III

9

Use high speed

>>>> Hidden Text <<<<

13

Edited by sixes99

Share this post


Link to post
Share on other sites

How is it all with the house? Hope all is working out as best can be

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  
Followers 0