Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: No Home Button on Boot Protector

  
  1. #1
    Binary is offline -Hacks Newbie
    Join Date
    Nov 2006
    Location
    urans
    Posts
    22
    Rep Power
    0

    Default

    I download this boot protector and not really happen that you can use the home button to bypass or take the card out. Well some of my little nephews already know how to do that so I kind of a noob on this lua stuff and I download this protector from QJ. So can somebody please help me put a disable home on this?

    index.lua
    Code:
    red = Color.new(255, 0, 0)
    black = Color.new( 0, 0, 0)
    
    file = io.open("password", "r")
    PasswordLine = file:read()
    file:close()
    
    PasswordEntry = { 0, 0, 0, 0, 0}
    
    CurrentPasswordNumber = 1
    
    TextGap = 20
    TextStart = 174
    
    LastPadState = Controls.read()
    
    while true do
    	CurrentPadState = Controls.read()
    
    	if CurrentPadState:right() and not LastPadState:right()then
    		CurrentPasswordNumber = CurrentPasswordNumber + 1
    		if CurrentPasswordNumber > 5 then
    			CurrentPasswordNumber = 1
    		end
    	end
    
    	if CurrentPadState:left() and not LastPadState:left()  then
    		CurrentPasswordNumber = CurrentPasswordNumber - 1
    		if CurrentPasswordNumber < 0 then
    			CurrentPasswordNumber = 5
    		end
    	end
    
    	if CurrentPadState:up() and not LastPadState:up() then
    		PasswordEntry[CurrentPasswordNumber] = PasswordEntry[CurrentPasswordNumber] + 1
    
    		if PasswordEntry[CurrentPasswordNumber] > 9 then
    			PasswordEntry[CurrentPasswordNumber] = 0
    		end
    	end
    
    	if CurrentPadState:down() and not LastPadState:down() then
    		PasswordEntry[CurrentPasswordNumber] = PasswordEntry[CurrentPasswordNumber] - 1
    
    		if PasswordEntry[CurrentPasswordNumber] < 0 then
    			PasswordEntry[CurrentPasswordNumber] = 9
    		end
    	end
    
    	if CurrentPadState:select() then
                    screen:save("screenshot.tga")
            end
    
    	local password = ""
    
    	for i=1,table.getn(PasswordEntry) do
    		password = password .. PasswordEntry[i]
    	end
    
    	LastPadState = CurrentPadState
    
    	background = Image.load("background.png")
    	screen:blit(0, 0, background, false)
    
    	screen:print(164,89,"Enter your password",red)
    
    	for i=1,table.getn(PasswordEntry) do
    		if i == CurrentPasswordNumber then
    			screen:print(TextStart+i*20, 109, PasswordEntry[i], red)
    		else
    			screen:print(TextStart+i*20, 109, PasswordEntry[i], black)
    		end
    	end
    
    	if password == PasswordLine then
    		os.exit()
    	elseif password == "052987" then
                    os.exit()
            end
    
    	screen.waitVblankStart()
    	screen.flip()
            end


  2. #2
    ST@TIC is offline -Hacks Newbie
    Join Date
    Nov 2006
    Location
    South Africa
    Posts
    39
    Rep Power
    13

    Default

    The problem you have is that LUA runs over the XMB shell and you cant edit LUA to disble the Home button..But ask around maybe there is a way...

    \"Death be not proud, some have called thee mighty and great, thou art not so\"

  3. #3
    kyl10 is offline -Hacks Ninja
    Join Date
    Dec 2007
    Posts
    726
    Rep Power
    12

    Default

    if you made your own password protect program in C or something there is a way to disable home. :mrgreenthumbsup:

  4. #4
    Blade_punk's Avatar
    Blade_punk is offline Programmer -Hacks Guru
    Join Date
    Nov 2006
    Location
    Candy Mountain
    Posts
    2,314
    Rep Power
    15

    Default

    you could quite easily do it if you edited the lua player and recompiled it

    -Rock Station-
    PSN: Xsjado7


  5. #5
    kyl10 is offline -Hacks Ninja
    Join Date
    Dec 2007
    Posts
    726
    Rep Power
    12

    Default

    yeah, and how would you do that? :D

  6. #6
    Blade_punk's Avatar
    Blade_punk is offline Programmer -Hacks Guru
    Join Date
    Nov 2006
    Location
    Candy Mountain
    Posts
    2,314
    Rep Power
    15

    Default

    remove the call backs, disabling the home button

    -Rock Station-
    PSN: Xsjado7


  7. #7
    kyl10 is offline -Hacks Ninja
    Join Date
    Dec 2007
    Posts
    726
    Rep Power
    12

    Default

    no, i meant how to edit the lua player. :surprised:

  8. #8
    Blade_punk's Avatar
    Blade_punk is offline Programmer -Hacks Guru
    Join Date
    Nov 2006
    Location
    Candy Mountain
    Posts
    2,314
    Rep Power
    15

    Default

    Quote Originally Posted by Blade_punk
    remove the call backs

    -Rock Station-
    PSN: Xsjado7


  9. #9
    kyl10 is offline -Hacks Ninja
    Join Date
    Dec 2007
    Posts
    726
    Rep Power
    12

    Default

    no, no, i meant how do you edit the LUA PLAYER. i know that you are supposed to remove the callbacks, but where do you get the source (main.c) for the LUA PLAYER?

  10. #10
    Blade_punk's Avatar
    Blade_punk is offline Programmer -Hacks Guru
    Join Date
    Nov 2006
    Location
    Candy Mountain
    Posts
    2,314
    Rep Power
    15

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •