AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Admin

Ein Thema von OnFire · begonnen am 2. Nov 2004 · letzter Beitrag vom 16. Aug 2005
Antwort Antwort
Seite 3 von 3     123   
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#21

Re: Admin

  Alt 16. Aug 2005, 01:52
Das überrascht mich jetzt aber doch etwas. OLLI!!!!!

Prüf mal explizit den Errorcode. Kommt da eventuell so was bei raus wie: ERROR_NOT_SUPPORTED oder so was? Es kann sein, dass es unter Consumer Windows einfach nur eine leere Hülle ist.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Olli
(Gast)

n/a Beiträge
 
#22

Re: Admin

  Alt 16. Aug 2005, 10:06
Zitat von Luckie:
Das überrascht mich jetzt aber doch etwas. OLLI!!!!!


Zitat von Luckie:
Prüf mal explizit den Errorcode. Kommt da eventuell so was bei raus wie: ERROR_NOT_SUPPORTED oder so was? Es kann sein, dass es unter Consumer Windows einfach nur eine leere Hülle ist.
Ein Stub wäre eine denkbare Möglichkeit. Werde das mal eben überprüfen ... bleibt dran
  Mit Zitat antworten Zitat
Olli
(Gast)

n/a Beiträge
 
#23

Re: Admin

  Alt 16. Aug 2005, 10:37
ROFLMAO, bin auch überrascht, habe es aber auf Windows 95B getestet ... dort gibt es eine ADVAPI32.DLL und diese enthält u.a. die genannten Exporte. Jetzt kommt der Witz: die machen natürlich nix und viele der Exporte zeigen sogar auf den gleichen Code. Beispiel:
Code:
[color=red].text:BFEC20FC ; Exported entry 24. ControlService
.text:BFEC20FC ; Exported entry 25. CopySid
.text:BFEC20FC ; Exported entry 59. DuplicateToken
.text:BFEC20FC ; Exported entry 68. GetAce
.text:BFEC20FC ; Exported entry 77. GetSecurityDescriptorControl
.text:BFEC20FC ; Exported entry 79. GetSecurityDescriptorGroup
.text:BFEC20FC ; Exported entry 81. GetSecurityDescriptorOwner
.text:BFEC20FC ; Exported entry 97. InitializeAcl
.text:BFEC20FC ; Exported entry 99. InitializeSid
.text:BFEC20FC ; Exported entry 102. IsTextUnicode
.text:BFEC20FC ; Exported entry 117. LookupPrivilegeValueA
.text:BFEC20FC ; Exported entry 118. LookupPrivilegeValueW
.text:BFEC20FC ; Exported entry 120. MakeSelfRelativeSD
.text:BFEC20FC ; Exported entry 124. ObjectCloseAuditAlarmA
.text:BFEC20FC ; Exported entry 125. ObjectCloseAuditAlarmW
.text:BFEC20FC ; Exported entry 134. OpenProcessToken
.text:BFEC20FC ; Exported entry 135. OpenSCManagerA
.text:BFEC20FC ; Exported entry 136. OpenSCManagerW
.text:BFEC20FC ; Exported entry 137. OpenServiceA
.text:BFEC20FC ; Exported entry 138. OpenServiceW
.text:BFEC20FC ; Exported entry 140. PrivilegeCheck
.text:BFEC20FC ; Exported entry 153. RegConnectRegistryW
.text:BFEC20FC ; Exported entry 157. RegCreateKeyW
.text:BFEC20FC ; Exported entry 171. RegLoadKeyW
.text:BFEC20FC ; Exported entry 176. RegOpenKeyW
.text:BFEC20FC ; Exported entry 189. RegRestoreKeyW
.text:BFEC20FC ; Exported entry 191. RegSaveKeyW
.text:BFEC20FC ; Exported entry 207. SetFileSecurityA
.text:BFEC20FC ; Exported entry 208. SetFileSecurityW
.text:BFEC20FC ; Exported entry 209. SetKernelObjectSecurity
.text:BFEC20FC ; Exported entry 216. SetServiceObjectSecurity
.text:BFEC20FC ; Exported entry 220. StartServiceA
.text:BFEC20FC ; Exported entry 223. StartServiceW[/color]
.text:BFEC20FC
.text:BFEC20FC ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
.text:BFEC20FC
.text:BFEC20FC
.text:BFEC20FC ; BOOL __stdcall StartServiceW(SC_HANDLE hService,DWORD dwNumServiceArgs,LPCWSTR *lpServiceArgVectors)
.text:BFEC20FC                public StartServiceW
.text:BFEC20FC StartServiceW  proc near
.text:BFEC20FC                xor    eax, eax       ; ControlService
.text:BFEC20FC                                        ; CopySid
.text:BFEC20FC                                        ; DuplicateToken
.text:BFEC20FC                                        ; GetAce
.text:BFEC20FC                                        ; GetSecurityDescriptorControl
.text:BFEC20FC                                        ; GetSecurityDescriptorGroup
.text:BFEC20FC                                        ; GetSecurityDescriptorOwner
.text:BFEC20FC                                        ; InitializeAcl
.text:BFEC20FC                                        ; InitializeSid
.text:BFEC20FC                                        ; IsTextUnicode
.text:BFEC20FC                                        ; LookupPrivilegeValueA
.text:BFEC20FC                                        ; LookupPrivilegeValueW
.text:BFEC20FC                                        ; MakeSelfRelativeSD
.text:BFEC20FC                                        ; ObjectCloseAuditAlarmA
.text:BFEC20FC                                        ; ObjectCloseAuditAlarmW
.text:BFEC20FC                                        ; OpenProcessToken
.text:BFEC20FC                                        ; OpenSCManagerA
.text:BFEC20FC                                        ; OpenSCManagerW
.text:BFEC20FC                                        ; OpenServiceA
.text:BFEC20FC                                        ; OpenServiceW
.text:BFEC20FC                                        ; PrivilegeCheck
.text:BFEC20FC                                        ; RegConnectRegistryW
.text:BFEC20FC                                        ; RegCreateKeyW
.text:BFEC20FC                                        ; RegLoadKeyW
.text:BFEC20FC                                        ; RegOpenKeyW
.text:BFEC20FC                                        ; RegRestoreKeyW
.text:BFEC20FC                                        ; RegSaveKeyW
.text:BFEC20FC                                        ; SetFileSecurityA
.text:BFEC20FC                                        ; SetFileSecurityW
.text:BFEC20FC                                        ; SetKernelObjectSecurity
.text:BFEC20FC                                        ; SetServiceObjectSecurity
.text:BFEC20FC                                        ; StartServiceA
.text:BFEC20FE                mov    cl, 3
.text:BFEC2100                 jmp    loc_BFEC1356
.text:BFEC2100 StartServiceW  endp
Also nochmal Glück gehabt, FriFra ... die tun nix, außer zu tun, daß dein Code tun tut
  Mit Zitat antworten Zitat
Benutzerbild von phXql
phXql

Registriert seit: 11. Mär 2004
Ort: Mühldorf
824 Beiträge
 
#24

Re: Admin

  Alt 16. Aug 2005, 10:58
Zitat von FriFra:
Nirgends! Ich hab einfach nicht glauben wollen, dass das Programm mit dieser Funktion nicht startetm und hab das ganze jetzt einfach mal getestet...
Die Idee mit dem dynamischen Laden der entspr. dll-Funktionen kam mir ja nur, weil hier mehrfach behauptet wurde, dass diese Funktionen "fest eingelinkt sind" und das Programm deshalb nicht starten würde... es startet aber
hmm, bei meinem ICQ hatte ich mal die funktion drin, die idle-time des users auszulesen. GetLastInput hiess die API, aber dann konnte man das programm unter win9x nicht mehr starten. kannst ja ausprobieren
"Dunkel die andere Seite ist"
"Yoda! Halts Maul und iss deinen Toast!"
  Mit Zitat antworten Zitat
Olli
(Gast)

n/a Beiträge
 
#25

Re: Admin

  Alt 16. Aug 2005, 11:52
Zitat von phXql:
GetLastInput hiess die API, aber dann konnte man das programm unter win9x nicht mehr starten. kannst ja ausprobieren
Deswegen haben wir uns mit Luckie ja auch gewundert. Da es aber diese leeren Stubs in Win9x gibt, muß er es ja nicht extra dynamisch machen. Zumal es sowieso keine Win9x/Me-Nachfolger gibt oder geben wird!
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#26

Re: Admin

  Alt 16. Aug 2005, 12:31
Ui, dann habe ich ja mal in Schwarze getippt. Aber wird noch nicht mal ERROR_NOT_SUPPORTED zurückgegeben?
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Olli
(Gast)

n/a Beiträge
 
#27

Re: Admin

  Alt 16. Aug 2005, 12:37
Da wo was zurückgegeben wird, scheint das 0 zu sein, also ERROR_SUCCESS.
  Mit Zitat antworten Zitat
Benutzerbild von FriFra
FriFra

Registriert seit: 19. Apr 2003
1.291 Beiträge
 
Delphi 2005 Professional
 
#28

Re: Admin

  Alt 16. Aug 2005, 14:29
Zitat von Olli:
Also nochmal Glück gehabt, FriFra ... die tun nix, außer zu tun, daß dein Code tun tut
Aber durch die vorangestellte Abfrage der Windowsversion tuts mein Code aber tatsächlich tun, denn ich lasse die "NT-Funktionen" in dem Fall noch nichtmal so tun als würden sie's tun und tue einfach sagen, dass ein Win9x User Admin ist
Elektronische Bauelemente funktionieren mit Rauch. Kommt der Rauch raus, geht das Bauteil nicht mehr.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 3 von 3     123   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:52 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz