|
You last visited: Today at 19:20
Advertisement
[VB.NET] detecting the flash player process in browser
Discussion on [VB.NET] detecting the flash player process in browser within the .NET Languages forum part of the Coders Den category.
04/07/2015, 20:48
|
#1
|
elite*gold: 0
Join Date: Nov 2014
Posts: 5
Received Thanks: 0
|
[VB.NET] detecting the flash player process in browser
Alright. so i have been working on a trainer for a flash browser-based game. everything is simple enough. write process memory and blah blah blah.
but the flash player detection is killing me..
because i'm trying to hack a flash browser game i would need to get the correct process that handles ShockWaveFlash. which in my case i used Maxthon. now maxthon has 4 processes. the last one is the one that has the NPSWF.DLL (for shockwaveflash)
|
|
|
04/07/2015, 21:05
|
#2
|
elite*gold: 3800
Join Date: Dec 2012
Posts: 13,039
Received Thanks: 8,243
|
Get the module handle of the dll in each process. If it's not Null it should be the right one.
|
|
|
04/07/2015, 21:40
|
#3
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
Its a Process Array so you need to make a for loop to search for the name
|
|
|
04/07/2015, 22:10
|
#4
|
elite*gold: 0
Join Date: Nov 2014
Posts: 5
Received Thanks: 0
|
ok i tried this
Code:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim MyProcess As Process() = Process.GetProcessesByName("Maxthon")
For Each Process In MyProcess
Dim hAddress As Integer = VirtualAllocEx(MyProcess(0).Handle, IntPtr.Zero, 11, MEM_COMMIT, PAGE_EXECUTE_READWRITE)
Next
End Sub
the values doesn't change anymore. (the address is correct) so the browser isn't hooked.
sorry if this is noobish but i'm really not that good :P
a bit different code
Code:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim MyProcess As Process() = Process.GetProcessesByName("Maxthon")
For Each thread As ProcessThread In Process.GetProcessesByName("Maxthom")(0).Threads
Dim hAddress As Integer = VirtualAllocEx(MyProcess(0).Handle, IntPtr.Zero, 22, MEM_COMMIT, PAGE_EXECUTE_READWRITE)
Next
End Sub
still. the values doesn't change
|
|
|
04/08/2015, 00:00
|
#5
|
elite*gold: 3800
Join Date: Dec 2012
Posts: 13,039
Received Thanks: 8,243
|
Code:
Dim MyProcess As Process() = Process.GetProcessesByName("Maxthon")
This is an array.
Itereate it. Get the module (not thread!) handle of "NPSWF.dll" of each process. If the handle does not equal 0, you have the right process. Use that process.
|
|
|
04/08/2015, 12:30
|
#6
|
elite*gold: 0
Join Date: Nov 2014
Posts: 5
Received Thanks: 0
|
Quote:
Originally Posted by Requi
Code:
Dim MyProcess As Process() = Process.GetProcessesByName("Maxthon")
This is an array.
Itereate it. Get the module (not thread!) handle of "NPSWF.dll" of each process. If the handle does not equal 0, you have the right process. Use that process.
|
is this possible in VB.NET?
i did a long research on google. i only found C/C++ methods
|
|
|
04/08/2015, 12:40
|
#7
|
elite*gold: 2932
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
|
Quote:
Originally Posted by Majin123456
i did a long research on google.
|
maybe you should do a research how to research with google...
"msdn process modules"
first result:
|
|
|
04/08/2015, 18:08
|
#8
|
elite*gold: 0
Join Date: Nov 2014
Posts: 5
Received Thanks: 0
|
i tried this
Code:
Dim a As Process = Process.GetProcessesByName("Maxthon")
Dim myProcessModule As ProcessModule
Dim myProcessModuleCollection As ProcessModuleCollection = a.Modules
Dim i As Integer
For i = 0 To myProcessModuleCollection.Count - 1
myProcessModule = myProcessModuleCollection(i)
MsgBox(myProcessModule.ModuleName + " : " + myProcessModule.FileName)
Next i
If a.Modules("NPSWF.DLL") Then
i got 2 errors
Code:
Value of type '1-dimensional array of System.Diagnostics.Process' cannot be converted to 'System.Diagnostics.Process'.
Value of type 'System.Diagnostics.ProcessModule' cannot be converted to 'Boolean'.
it wouldn't work when i call maxthon by process.getprocessesbyname right?
i don't know how to make it search for maxthon other then name or id.
i tried process.startinfo but i got (a 32 process cannot access a 64 process) and it would have to open maxthon again in order to do that
|
|
|
04/09/2015, 00:46
|
#9
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
dafuq learn to code. the error tells you exactly what you have done wrong.
And you still dont know what you need to do
|
|
|
04/09/2015, 15:13
|
#10
|
elite*gold: 3800
Join Date: Dec 2012
Posts: 13,039
Received Thanks: 8,243
|
Quote:
Originally Posted by Majin123456
i tried this
Code:
Dim a As Process = Process.GetProcessesByName("Maxthon")
Dim myProcessModule As ProcessModule
Dim myProcessModuleCollection As ProcessModuleCollection = a.Modules
Dim i As Integer
For i = 0 To myProcessModuleCollection.Count - 1
myProcessModule = myProcessModuleCollection(i)
MsgBox(myProcessModule.ModuleName + " : " + myProcessModule.FileName)
Next i
If a.Modules("NPSWF.DLL") Then
i got 2 errors
Code:
Value of type '1-dimensional array of System.Diagnostics.Process' cannot be converted to 'System.Diagnostics.Process'.
Value of type 'System.Diagnostics.ProcessModule' cannot be converted to 'Boolean'.
it wouldn't work when i call maxthon by process.getprocessesbyname right?
i don't know how to make it search for maxthon other then name or id.
i tried process.startinfo but i got (a 32 process cannot access a 64 process) and it would have to open maxthon again in order to do that
|
Copy-Pasta
Code:
Public myProcess As Process
Dim a As Process = Process.GetProcessesByName("Maxthon")
For i As Integer = 0 To a.Count - 1
For Each pMod As ProcessModule In a(i).Modules
If pMod.ModuleName = "NPSWF.DLL" Then
myProcess = a(i)
End If
Next
Next
If you can't implement it, you should rather learn to code before trying to create such kind of programs.
|
|
|
04/11/2015, 12:43
|
#11
|
elite*gold: 0
Join Date: Nov 2014
Posts: 5
Received Thanks: 0
|
Quote:
Originally Posted by Requi
Copy-Pasta
Code:
Public myProcess As Process
If you can't implement it, you should rather learn to code before trying to create such kind of programs.
|
well yeah. that works :P
thanks alot for Requi and tolio.
|
|
|
01/16/2016, 18:54
|
#12
|
elite*gold: 0
Join Date: Nov 2011
Posts: 2
Received Thanks: 0
|
hello! Hello. I need something for chrome. I need to find the pepflashplayer.dll
I could give an example of how to find it and inject a code on it?
I want to make a simple trainer in a game. but I do not know which module to use. thank you
Hello. I need something for chrome. I need to find the pepflashplayer.dll
I could give an example of how to find it and inject a code on it?
I want to make a simple trainer in a game. but I do not know which module to use.
I need an example with a button to send a cheat engine code oab the button. for example pepflashplayer.dll autoAssemble ([[
Aobscan (_aob2, 63 6F 64 65 3D 22 41 43 46 22)
_aob2:
db 63 6F 64 65 3D 22 41 39 54 22
]]
)
I want to inject it in a facebook game. Thank you for your help. Sorry my English'm from Brazil,
|
|
|
|
Similar Threads
|
Flash Player/Browser kaputt?
01/29/2015 - Technical Support - 7 Replies
Guten Abend ePVP,
seit gestern zeigt mir mein Browser (Opera) keine Videos mehr an (Youtube,Facebook. Streams gehen aber, jedoch laggen manche) Nun hab ich es jedoch mit Comodo Dragon probiert, dort ging alles...
Hat jemand eine Lösung?
MfG
|
function detecting died player.
08/07/2013 - Metin2 Private Server - 2 Replies
Is there any function or event that I can use in quest file wich triggers event after when player dies?
function pc.is_dead() is boolean type, but i need to do something like that:
when (player_dies) begin
-- some actions
end
I could use a timer for that, but loop seems makes no sense.
"Unnecessary extra server load"
|
Adobe Flash Player Player Problem (Viedeos öffnen sich nicht)
05/22/2013 - Technical Support - 6 Replies
Hallo,
Ich breuchte mal hilfe.
Ich kann seit 3-4 Tagen keine Viedeos in Facebook,twitch und und ...
Habs mir 10xmal runtergeladen und 10x installiert noch immer kann ich keine viedes anschauen. Nur in YouTube klappt alles.
Mein letzter Download war Adblocker. Den ich jetzt auch deinstalliert habe. Aber es passiert immer noch nichts.
Mein InternetBrowser Ist Explorer
|
[Question] 32Bit Browser bei AutoIT oder Flash Player für 64 Bit
12/08/2010 - AutoIt - 3 Replies
N'Abend!
Ich möchte mit meinem per AutoIT erstellten Browser Youtube Vidz schauen können ;).
Dies geht jedoch nciht, da er mir n 64Bit Browser erstellt.
Wäre es möglich AutoIT einen 32Bit Browser zu starten?
Oder gar einen Adobe Flash Player in den 64Bit Browser einzubauen?
Mein Script.(Der Browser steckt noch in den Anfangsfüßen, noch keine Ausschmückungen.)
#Include <IE.Au3>
|
All times are GMT +2. The time now is 19:20.
|
|