Servlet tutorial
This is a tutorial on servlet.
Data types in C
Data Types in C Each variable in C has an associated data type. Each data type requires different amounts of memory and has some specific operations which can be performed over it. Let us briefly describe them one by one: Following are the examples of some very common data types used in C: char: The most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers. int: As the name suggests, an int variable is used to store an integer. float: It is used to store decimal numbers (numbers with floating point value) with single precision. double: It is used to store decimal numbers (numbers with floating point value) with double precision.
ZIP FILE CRACK - PYTHON SCRIPT
import crypt def testPass(cryptPass): salt = cryptPass[0:2] dictFile = open('dictionary.txt','r') for word in dictFile.readlines(): word = word.strip('\n') cryptWord = crypt.crypt(word,salt) if (cryptWord == cryptPass): print "[+] Found Password: "+word+"\n" print "[-] Password Not Found.\n" def main(): passFile = open('passwords.txt') for line in passFile.readlines(): if ":" in line: user = line.split(':')[0] cryptPass = line.split(':')[1].strip(' ') print "[*] Cracking Password For: "+user testPass(cryptPass) if __name__ == "__main__": main()
Pointers - Basic
#include<stdio.h> int main() { int id=10; int *ptr = &id; printf("printing ptr - %d\n",ptr); printf("printing *ptr - %d\n",*ptr); int b=40; *ptr=b; printf("printing ptr - %d\n",*ptr); }
Post Scanning Using Python
import optparse import nmap def portscan(tgtHost,tgtPort): nscan=nmap.PortScanner() state=nscan[tgtHost]['tcp'][int(tgtPort)]['state'] print "[*]"+tgtHost+"tcp /"+tgtPort+" "+state def main(): ░ " parser=optparse.OptionParser("-target_ip <tgtHost> -target_Port <tgtPort>") parser.add_option('-H', dest='tgtHost', type='string', help='specify target host') parser.add_option('-p', dest='tgtPort', type='string', help='specify target port[s] separated by comma') (options, args) = parser.parse_args() tgtHost = options.tgtHost tgtPort= str(options.tgtPort).split(', ') if (tgtHost == None) | (tgtPort[0] == None): print '[-] You must specify a target host and port[s].' exit(0) portscan(tgtHost, tgtPort) if __name__ == '__main__': main()
FTP Connection Using Python Scripting
import ftplib def anonLogin(hostname): try: ftp=ftp.FTP(hostname) ftp.login('anonymous','me@your.com') print ' \n[+] Connection Created Successfully With FTP Server' ftp.quit() return true except: print '[-] Anonymous LOGIN Failed !' exit(0) return false host='192.168.95.179' anonLogin(host)
Ordered List And Unordered List - HTML
<html> <head><title>Day 3</title></head> <body> <ul style="list-style-type: disc"> <li>Km</li> <li>Km2</li> <li>Km3</li> </ul> <ol start="6"> <li>Ordered List i1</li> <li>Ordered List i2</li> <li>Ordered List i3</li> </ol> <dl style="list-style-type: circle" > <dt>IS</dt> <dd>Imformation security</dd> <dt>BD</dt> <dd>Big Data</dd> </dl> </body> </html>