Internet Security for Beginners: Contents
Total Page:16
File Type:pdf, Size:1020Kb
Internet Security For Beginners: Contents Introduction Programming Languages Command Prompt Batch Programming IP Addresses Port Numbers TCP And UDP Telnet FAQ NetBIOS/SMB Hacking Structured Query Language SQL Injection Trojans Faking/Hiding Extensions Obtaining IP Addresses A Short DoS FAQ A Short Buffer Overflow FAQ Using Password Crackers Proxies And Anonymity Google Hacking Index Browsing Basic NetCat Tutorial Compiling Exploits Using Windows FTP Hacker Community Basic Security Hacker Jargon/Slang FAQ Useful Links Disclaimer Greetz And Fuck Off's INTRODUCTION: Welcome to Internet Security For Beginners, this is the sequel to my "Hacking For n00bs Version 2", I expanded and improved this version, much of this text will be from the prequel to this text. This tutorial will teach you how to break into computers in order to teach you how to prevent such attacks from happening, after all if you know how to attack, you can figure out your own way of defending. Before trying any of the things in this text read the whole thing otherwise you might get confused, this tutorial is for the complete beginner to Internet Security. I hope you enjoy this text! This text was written by Aelphaeis Mangarae. BY READING THIS YOUR AGREEING YOU HAVE READ THE DISCLAIMER AND HAVE AGREED TO EVERYTHING IN IT! PROGRAMMING LANGUAGES: So you want to become a hacker? Well obviously if you’re reading this text, to become a hacker you must learn a programming language, so you can code your own programs and learn about how a computer works so you can repair or restore it. Since you’re a beginner, you don't want to start off with something really hard, the most commonly used programming language around the world is C. C was invented by Dennis Ritchie at Bell Telephone Labs in 1972. The language was originally created to design the UNIX operating system, which if you don't already know what a text based operating system, yes that's right NO GUI! Because of how powerful C was, C soon became one of the most used programming languages there is. Nearly all the hackers out there code in C, so to begin with you best start off with C, but don't think that you can jump straight into coding a GUI, C is not like Visual Basic, where you mostly just click and drag to create a GUI. The first programs you create in C will not have a GUI and will just use command prompt. So you’re going to start coding in C, first you need a compiler, so search Google for LCC-W32 this is a freeware compiler so you don't need to pay for it nor download a cracked version. Since this is just a beginner’s guide to Security I'm not going to go into coding in C, however I will show you how to compile your first program. So download LCC-W32 if you haven't already and open it up. Go to File, New, Project, then enter the name of your project, below that enter the path of where your project will be stored, this will include the .c file and your compiled program, and if you click below that you can put a path where you want your compiled program however, you should notice when you click in that box it automatically creates a path, you can use that if you want. Down the bottom you should have it set to "Single User" and Console Application, as I said before you will be making a console application not a program with a GUI. Click Create, you should then be prompted to where your .c file should be located and what the file name of it should be, just enter a file name like example.c and click OK, after that you will be prompted with another screen, click OK on that one as well. On the next screen just click Next again, then on the next one make sure you have it set to Console Application under Type of Output, then click Next, on the next screen click Next again. You should now have a white window where you can enter the code your going to compile, here is the code to your first program. #include <stdio.h> int main(void) { printf("Hello World\n"); return 0; } After you have entered the code, go to Compiler then Make, your program should now be compiled. To execute your program go to Compiler, then Execute example.exe (your program file name may vary.) Yay! you have now seen your first C program in action, now I will explain what each part of the C program does. First we have #include <stdio.h> This file includes the stdio.h header files in your C application, these header files are needed for output to the screen. Below that we have int main() Now int means integer, this allows a return code to be passed to the invoker, however since no function called it this is pretty irrelevant but it is good programming practice to declare main() as an integer and is advisable with C99 Standard. You should of noticed int main(void), void means that the function takes no arguments, obviously in this program main() does not take any arguments there for it is good programming practice to have int main(void). Below int main() is { This bracket begins the main() function and } ends the main function, now let's look at the body of the program, at the beginning of the main() function we have printf("Hello World\n"); Now printf is one of C's functions, what printf does is prints text to the screen, you may notice that "Hello World\n" is in quotation marks, this is so printf knows it is not a variable and is in fact a text string that it needs to print to the screen. When you ran your program you should of notice it printed. Hello World You may be thinking, well how come it didn't print \n, what is that for? \n basically means a new line. To play around with \n try Compiling and Executing the following program. #include <stdio.h> int main() { printf("H\ne\nl\nl\no\nW\no\nr\nl\nd\n"); return 0; } Ok, now I will explain some thing's I didn't get around to explaining before at the end of printf("H\ne\nl\nl\no\nW\no\nr\nl\nd\n") is a semicolon, in C programming you must put a semicolon on the end of each statement in programming (not including #include and your functions.) Below printf is return 0;, this returns 0 to the function that called on main() although this is not really relevant, because nothing has called on main() we must put it in anyway otherwise LCC-W32 complains. However since there is no need to return anything if you wanted to you could change int main() to void main() (meaning it returns nothing) and then you won't need to include return 0; So basically: #include <stdio.h> void main() { printf("Hello World\n"); } Now you have compiled your first program I bet your thinking well where can I go from here, well you need some books on C. I recommend the following books: A Short Guide On C Programming For Beginners (This is a short guide by Aelphaeis Mangarae.) Sam's Teach Yourself C In 21 Days Primers Guide To C Programming COMMAND PROMPT: You know what Command Prompt is right? It’s that big black box….if you don’t know try and remember. Command Prompt is the command line interpreter for Windows, and was essential back in the days when operating systems didn’t have GUI’s. To open up Command Prompt go to “Run” then type in “cmd” with out quotation marks of course. Why is it important to learn how to use Command Prompt? Well a lot of hacking, well at least hacking using windows involves Command Prompt. Type “help” and you should get a list of commands, read all of them.. Below I’ve listed all the commands and their functions: ASSOC Displays or modifies file extension associations. AT Schedules commands and programs to run on a computer. ATTRIB Displays or changes file attributes. BREAK Sets or clears extended CTRL+C checking. CACLS Displays or modifies access control lists (ACLs) of files. CALL Calls one batch program from another. CD Displays the name of or changes the current directory. CHCP Displays or sets the active code page number. CHDIR Displays the name of or changes the current directory. CHKDSK Checks a disk and displays a status report. CHKNTFS Displays or modifies the checking of disk at boot time. CLS Clears the screen. CMD Starts a new instance of the Windows command interpreter. COLOR Sets the default console foreground and background colors. COMP Compares the contents of two files or sets of files. COMPACT Displays or alters the compression of files on NTFS partitions. CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. DIR Displays a list of files and subdirectories in a directory. DISKCOMP Compares the contents of two floppy disks. DISKCOPY Copies the contents of one floppy disk to another. DOSKEY Edits command lines, recalls Windows commands, and creates macros. ECHO Displays messages, or turns command echoing on or off. ENDLOCAL Ends localization of environment changes in a batch file.