
Search found 12 matches
- Tue Jun 28, 2011 5:15 pm
- Forum: Coding Questions
- Topic: Byte Array inside Structure Error
- Replies: 5
- Views: 854
Re: Byte Array inside Structure Error
wow thank you didnt know PB has Array as keyword 

- Tue Jun 28, 2011 5:11 pm
- Forum: Coding Questions
- Topic: Byte Array inside Structure Error
- Replies: 5
- Views: 854
Byte Array inside Structure Error
Structure GENERALINPUT
dwType .l
xi.b(23)
EndStructure
When i enter this i get
---------------------------
PureBasic
---------------------------
Line 3: Garbage at the end of the line.
---------------------------
OK
---------------------------
Please tell me why
dwType .l
xi.b(23)
EndStructure
When i enter this i get
---------------------------
PureBasic
---------------------------
Line 3: Garbage at the end of the line.
---------------------------
OK
---------------------------
Please tell me why
- Sun Jun 26, 2011 7:26 am
- Forum: Tricks 'n' Tips
- Topic: IsDebuggerPresent (Inline ASM)
- Replies: 6
- Views: 2690
Re: IsDebuggerPresent (Inline ASM)
it is one of the addition yea ppl can bypass but instead of Messagebox i can directly end the program or dont execute anything which could trigger in Olly
- Sat Jun 25, 2011 7:46 pm
- Forum: Tricks 'n' Tips
- Topic: IsDebuggerPresent (Inline ASM)
- Replies: 6
- Views: 2690
IsDebuggerPresent (Inline ASM)
Procedure MIsDebuggerPresent()
!MOV eax,dword[fs:18h]
!MOV eax,dword[eax+30h]
!MOVZX eax,byte[eax+2]
CMP eax,#True
!RET
ProcedureReturn
EndProcedure
usage:
If(MIsDebuggerPresent())
MessageRequester("haha","Sorry")
Else
MessageRequester("Not Debugged","Not Debugged")
EndIf
Proof
http ...
!MOV eax,dword[fs:18h]
!MOV eax,dword[eax+30h]
!MOVZX eax,byte[eax+2]
CMP eax,#True
!RET
ProcedureReturn
EndProcedure
usage:
If(MIsDebuggerPresent())
MessageRequester("haha","Sorry")
Else
MessageRequester("Not Debugged","Not Debugged")
EndIf
Proof
http ...
- Sat Jun 25, 2011 6:01 pm
- Forum: Tricks 'n' Tips
- Topic: Get Current Application Name [Inline ASM]
- Replies: 9
- Views: 3262
Re: Get Current Application Name [Inline ASM]
oh @ts-soft thanks got it 

- Sat Jun 25, 2011 5:15 pm
- Forum: Tricks 'n' Tips
- Topic: Get Current Application Name [Inline ASM]
- Replies: 9
- Views: 3262
Re: Get Current Application Name [Inline ASM]
whats the difference between mine and urs ?
- Sat Jun 25, 2011 4:11 pm
- Forum: Tricks 'n' Tips
- Topic: Get Current Application Name [Inline ASM]
- Replies: 9
- Views: 3262
Get Current Application Name [Inline ASM]
;Thanks to mjrod5 for Fasm Example
;Mr52
Procedure GetSelfName()
!MOV eax, [fs:0x30]
!MOV eax, [eax+0x0C]
!MOV eax, [eax+0x14]
!MOV ecx, [eax+0x24] ;Length
!MOV eax, [eax+0x28] ;Buffer(Unicode btw)
ProcedureReturn
EndProcedure
It returns the Application Name like in VB App.Exename :)
it doesnt ...
;Mr52
Procedure GetSelfName()
!MOV eax, [fs:0x30]
!MOV eax, [eax+0x0C]
!MOV eax, [eax+0x14]
!MOV ecx, [eax+0x24] ;Length
!MOV eax, [eax+0x28] ;Buffer(Unicode btw)
ProcedureReturn
EndProcedure
It returns the Application Name like in VB App.Exename :)
it doesnt ...
- Fri Jun 24, 2011 7:25 pm
- Forum: Coding Questions
- Topic: String to ByteArray
- Replies: 5
- Views: 1558
Re: String to ByteArray
whoa
that was fast thanks :d Works
thanks again

thanks again
- Fri Jun 24, 2011 6:18 pm
- Forum: Coding Questions
- Topic: String to ByteArray
- Replies: 5
- Views: 1558
Re: String to ByteArray
Thank You c4s :) Have seen that before well dont know but this is function im trying to Code in PB
Public Function X(ByVal T As String, p As String) As String
On Error Resume Next
Dim s(0 To 255) As Integer
Dim i, B, c As Integer
Dim L() As Byte
Dim R() As Byte
Dim D As Byte
R() = StrConv ...
Public Function X(ByVal T As String, p As String) As String
On Error Resume Next
Dim s(0 To 255) As Integer
Dim i, B, c As Integer
Dim L() As Byte
Dim R() As Byte
Dim D As Byte
R() = StrConv ...
- Fri Jun 24, 2011 5:28 pm
- Forum: Coding Questions
- Topic: String to ByteArray
- Replies: 5
- Views: 1558
String to ByteArray
Well in VB we can change the String into Bytearray very easily like
Dim A() as Byte
A()=StrConv("String",vbUnicode)
But how to do it in PB ?
I have a lot of trouble with this
Tried MultiByteToWideChar But need to String into ByteArray Please help me
Dim A() as Byte
A()=StrConv("String",vbUnicode)
But how to do it in PB ?
I have a lot of trouble with this
Tried MultiByteToWideChar But need to String into ByteArray Please help me
- Fri Jun 24, 2011 2:56 pm
- Forum: Coding Questions
- Topic: WriteProcess memory Vb to PB
- Replies: 6
- Views: 915
Re: WriteProcess memory Vb to PB
Thank You Guys this works perfectly :d
- Fri Jun 24, 2011 1:47 pm
- Forum: Coding Questions
- Topic: WriteProcess memory Vb to PB
- Replies: 6
- Views: 915
WriteProcess memory Vb to PB
VB Function
Private Function GetDWORD(ByVal lAddr As Long) As Long
Call NtWriteVirtualMemory(-1, GetDWORD, ByVal lAddr, 4, ByVal 0&)
End Function
h=App.hInstance
Debug GetDWORD(h+&H3C)
PB Function
Procedure.l GetDWORD(lAddr.l)
pid.l = GetCurrentProcessId_()
pHandle.l = OpenProcess ...
Private Function GetDWORD(ByVal lAddr As Long) As Long
Call NtWriteVirtualMemory(-1, GetDWORD, ByVal lAddr, 4, ByVal 0&)
End Function
h=App.hInstance
Debug GetDWORD(h+&H3C)
PB Function
Procedure.l GetDWORD(lAddr.l)
pid.l = GetCurrentProcessId_()
pHandle.l = OpenProcess ...