Results for "Category: Security"
This is a password script. Every charachter the user input it displays a star. the password is kcTHEgreat. Catches Control c (Taught to me by a friend :)) so the only way out is to enter the correct password. If you like and think it's secure put it in your autoexec.bat
Example of how to stream data behind a "facade" file. Stream 1M behind a 1K text file, and explorer/DIR still shows the file to be 1K. According to "Hacking Exposed 2ED" there is only one application that can find these streams.
With NTFS partitions, intruders can hide their toolkits behind a 'front file'. Explorer and DIR only show the front file and the size of the front file, leaving no clue as the hidden 'back streamed' files. This code finds them. You can back stream a file like this "copy MyTrojanProgram.exe SomeSystemFile.ini:MyTrojan.exe" SomSystemFile.ini will stay the same size and the backstreamed trojan will be almost undetectable.
This is a professional level app. I wrote it as shareware, but for fellow coders.. well it's all yours. It finds all shares on a domain. then the creeper will search these shares for files that the user defines in the GUI. once found, the app will dl them to your local system. - You can also use it as a security tool to determine how many unsecured shares are on your domain.
This little sample shows the use of the ASP.NET form authentication. It comes with forms for registration/login/edit user data/logoff. The data is saved in a database using oledb. If you like this sample, please don't forget to vote...
It can load a text file or take typed text and encrypt it using a very simple algorithm. More MFC stuff for school. Hope you like it
Enable or disable the start menu in one line of code.
This is a programm (written in Assembler) that saves a file on a disk in RAW format, without FAT or anything. This means that data will be saved on your disk but it will be able to read only by your programm.
Simple little console app which locks files by opening them exclusively and so prevents malicious applications from deleting/editing them. Nothing fancy, I just wrote it for myself since I'm a bit paranoid and afraid of rootkits. Commands: secure [physical path to file] - Secures the specified file unsecure [physical path to file] - Unlocks it for write access list - Lists all secured files save - Saves list of secured files. Will be secured automatically on restart. load - Manually loads list of secured files. exit - Unsecures, saves and quits. Released under the GPL.
Crypt and decrypt a string without the standard PHP functions.
Use this code for secure pages on you're website. You have to login with a username and password, the code will check if the user excists, if so the code will generate a unique sessionid and save that sessionid into the database. On every page that you want to secure this code will first check if the sessionid is in the temptable. So no changes for hackers! After unzipping the files first open ReadMeFirst.txt!
UPDATED: Added an SQL injection prevention method, Added more documentation, and a few more minor changes. This code will show you how to prevent header injection, the method GET (only allow POST from a form), unauthorized domain access, and invalid agent access. You see a lot of SQL injection prevention methods and what not, but nothing to this level. This is a first on PSC I belive. If you like it please leave some feedback and vote.
This will detect any suspicious open socket that the user is running and if found in an array, it will not let the user proceed to the website, with the ability to allow certain hosts to pass the scan, and disallowing certain hosts completely. You can define a redirect page to redirect the user to upon open socket.
Sorry guys, my first submission! Didn't realize it read my article as html! Please read it again. Ta. I was looking at password protection, and found nothing like this. It uses a file name as the password, with the file extension. The code searches the current directory on the hosting server for the file, and takes appropriate action.
Encrypts and Decrypts strings on a webpage. Source is hidden from the user, so that a cracker can only guess about the algorythm.
My first ASP project: a login page. It uses a database to verify usernames and passwords. Also includes registration ability. Comment is supplied so that less experienced programmers can also understand the code. PLEASE VOTE IF YOU LIKE THIS CODE!
This code allows the user to imput a password (within a C++ program) without any text being displayed on-screen (not even *'s)
This programm sniffs connection between 2 hosts, and shows the source-ip/port, dest-ip/port, Flags,and the Packetdata(payload). It is a nice example for rawsockets with winsock. Test is and mail me ;=)
The idea is that when the client connects to a server, each of the nodes create a pair of keys, and each send their public keys to the other side. after that each node encrypts the data using the other node's public key and decrypts the data it recieves using its own private key. almost impossible for a sniffer to decrypt the data. Remember that this is a just a sample on how to do this and it does not have many features including events and async data tranfer.
This is a Username And Password Login for a website written in PHP4 and html uses mySQL to store user information and to validate usernames and passwords. Sorry for the .doc format here it is in .txt