Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Attach Browser

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Wed Nov 23, 2016 4:13 am    Post subject: Attach Browser Reply with quote

Hi there,

I just make a trainer form template for browser selector (in a combobox) to open with a button click (flashplugin). I need help to adding UC Browser, Comodo Dragon and Firefox (Unity Game) on browsers selection to attach.

I can't try to attach that 3 browsers as I said above, because I don't have it all on my computer and I don't know hat is process name for each 3 browsers as I mentioned above.


Code:

--------------------------- SET COLORS VARIABLE USE FOR MESSAGES
blue="0x00F21200"
red1="0x000000FF"
red2="0x00995500"
white="0x00FFFFFF"

--------------------------- SET COMBO BOX FOR BROWSER SELECTION
al = combobox_getItems(UDF1.CEComboBox1)
strings_clear(al)
strings_add(al, 'Browser list...')
strings_add(al, 'Firefox')
strings_add(al, 'Google Chrome')
strings_add(al, 'Internet Explorer')
strings_add(al, 'Maxthon')
strings_add(al, 'UC Browser')
strings_add(al, 'Firefox Unity Game')
strings_add(al, 'Opera')
strings_add(al, 'Comodo Dragon')
setProperty(UDF1.CEComboBox1 , "ItemIndex", "0")
all_enabled = 0
success = 1

-------------------------- LOOK UP FOR PIDS
errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
   local tempPIDtable = getPids()
   if #tempPIDtable == 0 then return end
   timer_setEnabled(sender,false)
   openProcess(tempPIDtable[1])
end)

function checkProcessMajor()
   reinitializeSymbolhandler()
   if getAddress("pepflashplayer.dll")~=0 or getAddress("AdobeCPGetAPI") ~=0 then
      return true
   end
   return false
end

function getPids()
   local SL=createStringlist()
   getProcesslist(SL)
   local tempPIDtable={}
   for i=0,strings_getCount(SL)-1 do
      local entry = strings_getString(SL,i)
      local processname = entry:sub(10,255)
      local PID = tonumber('0x'..entry:sub(1,8))
      if processname == "chrome.exe" then
         if alreadycheckedPIDS[PID]~=true then
            table.insert(tempPIDtable,PID)
         end
      end
   end
   object_destroy(SL)
   return tempPIDtable
end

function checkProcess(sender)
   timer_setEnabled(sender,false)
   alreadycheckedPIDS[getOpenedProcessID()]=true
   if checkProcessMajor() then
      timer_setEnabled(openNextProcTimer,false)
      alreadycheckedPIDS={}
      enableBrowserPid()
   else
      timer_setEnabled(openNextProcTimer,true)
   end
end

checkProcessTimer = createTimer(nil,false)
timer_setInterval(checkProcessTimer, 100)
timer_onTimer(checkProcessTimer, checkProcess)

function onOpenProcess()
   if success == 1 then return end
   timer_setEnabled(checkProcessTimer,true)
end

----------------------------------------- BROWSER SELECTOR
function scanBrowser()
   AttachItems = combobox_getItems(UDF1.CEComboBox1)
   AttachIndex = combobox_getItemIndex(UDF1.CEComboBox1)
   local font = getProperty(UDF1.CELabel1 , "Font")
   setProperty(font, "Color", white)
   control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "Scanning Process...")
   processMessages()
   if AttachIndex == -1 then return end
   if AttachIndex == 0 then
      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "no Browser selected.")
      return
   end

   local check = strings_getString(AttachItems,AttachIndex)
--- Google Chrome
   if check == 'Google Chrome' then
      success = 0
      local test = openProcess("chrome.exe")
      if test == nil then
         setProperty(font , "Color", red1)
         control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "Chrome not found.")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"chrome.exe")
      timer_setEnabled(openNextProcTimer,true)
      return
   end
--- Firefox and IE
   if check == 'Firefox' or check == 'Internet Explorer' then openProcess("FlashPlayerPlugin") end
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("kernel32.dll")==0
   if err==true then
      setProperty(font , "Color", red1)
      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "Flash player plugin not found")
   else
      local PID=getOpenedProcessID()
      setProperty(font, "Color", white)
      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - flash player plugin")
   end
--- Maxthon
    local check = strings_getString(AttachItems,AttachIndex)
        if check == 'Maxthon' then
        success = 0
        local test = openProcess("Maxthon.exe")
    if test == nil then
        setProperty(font , "Color", red1)
        control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "Maxthon not found.")
        timer_setEnabled(openNextProcTimer,false)
        return
     end
     strings_add(getAutoAttachList(),"Opera.exe")
     timer_setEnabled(openNextProcTimer,true)
    return
end
--- UC Browser

--- Firefox Unity Game

--- Opera
   local check = strings_getString(AttachItems,AttachIndex)
        if check == 'Opera' then
        success = 0
        local test = openProcess("Opera.exe")
    if test == nil then
        setProperty(font , "Color", red1)
        control_setCaption(UDF1.CELabel1, "Attached to PID: " .. "Opera not found.")
        timer_setEnabled(openNextProcTimer,false)
        return
     end
     strings_add(getAutoAttachList(),"Maxthon.exe")
     timer_setEnabled(openNextProcTimer,true)
    return
end
--- Comodo Dragon
end

----------------------------------------- SHOW ENABLED BROWSER SELECTED PID
function enableBrowserPid()
   setProperty(getProperty(UDF1.CELabel1 , "Font"), "Color", white)
   local PID=getOpenedProcessID()
   local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Firefox' or check == 'Internet Explorer' then
      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - flash player plugin")
   elseif check == 'Google Chrome' then
      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - chrome.exe")
    elseif check == 'Maxthon' then
        control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - maxthon.exe")
--  elseif check == 'UC Browser' then
--      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - UCBrowser.exe")
--  elseif check == 'Firefox Unity Game' then
--      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - ??????.exe")
--  elseif check == 'Opera' then
--      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - opera.exe")
--  elseif check == 'Comodo Dragon' then
--      control_setCaption(UDF1.CELabel1, "Attached to PID: " .. PID .. " - ???????exe")
   end
   success = 1
end

----------------------------------------- SET ON CLICK FUNCTION AND CLOSING
control_onClick(UDF1.CEButton1, scanBrowser)
form_onClose(UDF1, CloseTrainer)
form_show(UDF1)


Should someone there completing the script in that CT file as attached.
Thank you



Attach Browser.ct
 Description:

Download
 Filename:  Attach Browser.ct
 Filesize:  6.81 KB
 Downloaded:  314 Time(s)

Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Wed Nov 23, 2016 9:34 pm    Post subject: Reply with quote

Solved..!. Browser selector template CT file as attached


Attach Browser.ct
 Description:
Browser's selector to attach flash player plugin or a game running under a web browser

Download
 Filename:  Attach Browser.ct
 Filesize:  9.69 KB
 Downloaded:  307 Time(s)

Back to top
View user's profile Send private message
mousemous
How do I cheat?
Reputation: 0

Joined: 05 Dec 2016
Posts: 4

PostPosted: Mon Dec 05, 2016 5:18 am    Post subject: facebook gameroom Reply with quote

Corroder wrote:
Solved..!. Browser selector template CT file as attached



hi bro
pleas can you give me hand how to add FACEBOOK GAMEROOM pleas

thanx you bro
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Tue Dec 06, 2016 1:34 pm    Post subject: Attach Browser With FB Game Room (Including) Reply with quote

Test it...


Attach_Browser_Including_FBGameRoom.CT
 Description:

Download
 Filename:  Attach_Browser_Including_FBGameRoom.CT
 Filesize:  10.06 KB
 Downloaded:  350 Time(s)

Back to top
View user's profile Send private message
mousemous
How do I cheat?
Reputation: 0

Joined: 05 Dec 2016
Posts: 4

PostPosted: Wed Dec 07, 2016 5:37 am    Post subject: Re: Attach Browser With FB Game Room (Including) Reply with quote

Corroder wrote:
Test it...


bro i still have problem dont work me Sad
when im install this app

www-facebook-com/gameroom/
- = .

Gameroom tell me not found
Gameroom (Unity Game) tell me PID: 0

Sad
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Wed Dec 07, 2016 9:01 am    Post subject: Reply with quote

I have tested and it work.
I don't know what happen on your.
But these is I did :

1. I have installed FB Game Room on my PC
2. Then open a trainer I made with FB Game Room on selected by trainer browser selection.
3. Executing hacks (for still work AOB hack code for several games)

Did you check your hack codes still work or patched ?

Regards



Capture.JPG
 Description:
 Filesize:  129.31 KB
 Viewed:  8129 Time(s)

Capture.JPG


Back to top
View user's profile Send private message
mousemous
How do I cheat?
Reputation: 0

Joined: 05 Dec 2016
Posts: 4

PostPosted: Wed Dec 07, 2016 11:19 am    Post subject: Reply with quote

i tried it but im not know what i use wrong Crying or Very sad

i test you send PM but cant Sad
this write me Sad
You can not pm yet. Try posting your question in public instead (If the other person has PM'ed you first, you may pm this person)


can you pleas send me PM,
i send my trainer when you can pleas look, but im very sad im test it the whole day and still cant run it



I do not know what but something I'm doing wrong
when I try to process chrome or Maxthon
hack ENABLED
then when you run Gameroom
process to find a (unfortunately the process belong chrome or Maxthon)
and hack FAILED




and my code work i use it in google chrome, but need add Gameroom and this no work to me Sad
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Thu Dec 08, 2016 3:12 am    Post subject: Reply with quote

Here is another version.
This will open all running process in memory, if FB Game Room active in memory, it will show about 4 or 5 FB Game Room processes running in memory (with PID name FB Game Room or something like that). You should double click one by one to finding the correct process.
And if one process has chose, try activating your hacks. If hack enable success, that mean you found the correct process. If fail, try to next FB Game Room, PID.

Usually the correct process for FB Game Room is 3rd or 4th PID in memory



Attach_Browser_04_All_Process.CT
 Description:

Download
 Filename:  Attach_Browser_04_All_Process.CT
 Filesize:  3 KB
 Downloaded:  382 Time(s)

Back to top
View user's profile Send private message
mousemous
How do I cheat?
Reputation: 0

Joined: 05 Dec 2016
Posts: 4

PostPosted: Thu Dec 08, 2016 11:03 am    Post subject: Reply with quote

WOHOO work Exclamation Exclamation Exclamation

thanx you very very much for help me Wink Wink Wink
Back to top
View user's profile Send private message
CoolMayo
How do I cheat?
Reputation: 0

Joined: 12 Oct 2017
Posts: 1

PostPosted: Thu Oct 12, 2017 5:35 pm    Post subject: Reply with quote

Is this thread still open?
I still dont get it about trainer, and how open it?
Where should I get this step by step?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites