Install PHP

To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software stack. It is available for all operating systems. There are many AMP options available in the market that are given below:

  • WAMP for Windows
  • LAMP for Linux
  • MAMP for Mac
  • SAMP for Solaris
  • FAMP for FreeBSD
  • XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes some other components too such as FileZilla, OpenSSL, Webalizer, Mercury Mail, etc.

If you are on Windows and don’t want Perl and other features of XAMPP, you should go for WAMP. In a similar way, you may use LAMP for Linux and MAMP for Macintosh.

Download and Install WAMP Server

Click me to download WAMP server

Download and Install LAMP Server

Click me to download LAMP server

Download and Install MAMP Server

Click me to download MAMP server

Download and Install XAMPP Server

Click me to download XAMPP server

How to install XAMPP server on windows

We will learn how to install the XAMPP server on windows platform step by step. Follow the below steps and install the XAMPP server on your system.

Step 1: Click on the above link provided to download the XAMPP server according to your window requirement.

Install PHP

Step 2: After downloading XAMPP, double click on the downloaded file and allow XAMPP to make changes in your system. A window will pop-up, where you have to click on the Next button.

Install PHP

Step 3: Here, select the components, which you want to install and click Next.

Install PHP

Step 4: Choose a folder where you want to install the XAMPP in your system and click Next.

Install PHP

Step 5: Click Next and move ahead.

Install PHP

Step 6: XAMPP is ready to install, so click on the Next button and install the XAMPP.

Install PHP

Step 7: A finish window will display after successful installation. Click on the Finish button.

Install PHP

Step 8: Choose your preferred language.

Install PHP

Step 9: XAMPP is ready to use. Start the Apache server and MySQL and run the php program on the localhost.

How to run PHP programs on XAMPP, see in the next tutorial.

Install PHP

Step 10: If no error is shown, then XAMPP is running successfully.

Install PHP

Skills for Ethical Hacker

Skills allow you to achieve your desired goals within the available time and resources. As a hacker, you will need to develop skills that will help you get the job done. These skills include learning how to program, use the internet, good at solving problems, and taking advantage of existing security tools.

In this article, we will introduce you to the common programming languages and skills that you must know as a hacker.

What is a programming language?

A programming language is a language that is used to develop computer programs. The programs developed can range from operating systems; data based applications through to networking solutions.  

Why should you learn how to program?

  • Hackers are the problem solver and tool builders, learning how to program will help you implement solutions to problems. It also differentiates you from script kiddies.
  • Writing programs as a hacker will help you to automate many tasks which would usually take lots of time to complete.
  • Writing programs can also help you identify and exploit programming errors in applications that you will be targeting.
  • You don’t have to reinvent the wheel all the time, and there are a number of open source programs that are readily usable. You can customize the already existing applications and add your methods to suit your needs.

What languages should I learn?

The answer to this question depends on your target computer systems and platforms. Some programming languages are used to develop for only specific platforms. As an example, Visual Basic Classic (3, 4, 5, and 6.0) is used to write applications that run on Windows operating system. It would, therefore, be illogical for you to learn how to program in Visual Basic 6.0 when your target is hacking Linux based systems.

Programming languages that are useful to hackers

SR NO.COMPUTER
LANGUAGES
DESCRIPTIONPLATFORMPURPOSE
1 HTML


Language used to write web pages.*Cross platformWeb hacking
Login forms and other data entry methods on the web use HTML forms to get data. Been able to write and interpret HTML, makes it easy for you to identify and exploit weaknesses in the code.
2JavaScript


Client side scripting language*Cross platformWeb Hacking
JavaScript code is executed on the client browse. You can use it to read saved cookies and perform cross site scripting etc.
3PHP


Server side scripting language*Cross platformWeb Hacking
PHP is one of the most used web programming languages. It is used to process HTML forms and performs other custom tasks. You could write a custom application in PHP that modifies settings on a web server and makes the server vulnerable to attacks.
4SQL


Language used to communicate with database*Cross platformWeb Hacking
Using SQL injection, to by-pass web application login algorithms that are weak, delete data from the database, etc.
5Python
Ruby
Bash
Perl
High level programming languages*Cross platformBuilding tools & scripts
They come in handy when you need to develop automation tools and scripts. The knowledge gained can also be used in understand and customization the already available tools.
6C & C++


High level programming*Cross platformWriting exploits, shell codes, etc.
They come in handy when you need to write your own shell codes, exploits, root kits or understanding and expanding on existing ones.
7Java
CSharp
Visual Basic
VBScript
Other languages
Java & CSharp are *cross platform. Visual Basic is specific to WindowsOther uses
The usefulness of these languages depends on your scenario.

* Cross platform means programs developed using the particular language can be deployed on different operating systems such as Windows, Linux based, MAC etc.

Other skills

In addition to programming skills, a good hacker should also have the following skills:

  • Know how to use the internet and search engines effectively to gather information.
  • Get a Linux-based operating system and the know the basics commands that every Linux user should know.
  • Practice makes perfect, a good hacker should be hard working and positively contribute to the hacker community. He/she can contribute by developing open source programs, answering questions in hacking forums, etc.

C Standard library function

In this tutorial, you’ll learn about the standard library functions in C. More specifically, what are they, different library functions in C and how to use them in your program.

C Standard library functions or simply C Library functions are inbuilt functions in C programming.

The prototype and data definitions of these functions are present in their respective header files. To use these functions we need to include the header file in our program. For example,

If you want to use the printf() function, the header file <stdio.h> should be included.

#include <stdio.h>
int main()
{
   printf("Catch me if you can."); 
}

If you try to use printf() without including the stdio.h header file, you will get an error.


Advantages of Using C library functions

1. They work

One of the most important reasons you should use library functions is simply because they work. These functions have gone through multiple rigorous testing and are easy to use.

2. The functions are optimized for performance

Since, the functions are “standard library” functions, a dedicated group of developers constantly make them better. In the process, they are able to create the most efficient code optimized for maximum performance.

3. It saves considerable development time

Since the general functions like printing to a screen, calculating the square root, and many more are already written. You shouldn’t worry about creating them once again.

4. The functions are portable

With ever-changing real-world needs, your application is expected to work every time, everywhere. And, these library functions help you in that they do the same thing on every computer.


Example: Square root using sqrt() function

Suppose, you want to find the square root of a number.

To can compute the square root of a number, you can use the sqrt() library function. The function is defined in the math.h header file.

#include <stdio.h>
#include <math.h>
int main()
{
   float num, root;
   printf("Enter a number: ");
   scanf("%f", &num);

   // Computes the square root of num and stores in root.
   root = sqrt(num);

   printf("Square root of %.2f = %.2f", num, root);
   return 0;
}

When you run the program, the output will be:

Enter a number: 12
Square root of 12.00 = 3.46

Library Functions in Different Header Files

C Header Files
<assert.h>Program assertion functions
<ctype.h>Character type functions
<locale.h>Localization functions
<math.h>Mathematics functions
<setjmp.h>Jump functions
<signal.h>Signal handling functions
<stdarg.h>Variable arguments handling functions
<stdio.h>Standard Input/Output functions
<stdlib.h>Standard Utility functions
<string.h>String handling functions
<time.h>Date time functions

List of programming languages.

Computer programming languages are used to to communicate instructions to a computer. They are based on certain syntactic and semantic rules, which define the meaning of each of the programming language constructs.Today I’ve got a list of every programming language I could find. I divided them into the following categories:

  • Interpreted Programming Languages
  • Functional Programming Languages
  • Compiled Programming Languages
  • Procedural Programming Languages
  • Scripting Programming Languages
  • Markup Programming Languages
  • Logic-Based Programming Languages
  • Concurrent Programming Languages
  • Object-Oriented Programming Languages
A
A.NET
A-0 System
A+
ABAP
ABC
ABC ALGOL
ACC
Accent
Ace DASL
Action!
ActionScript
Actor
Ada
Adenine
Agda
Agilent VEE
Agora
AIMMS
Aldor
Alef
ALF
ALGOL 58
ALGOL 60
ALGOL 68
ALGOL W
Alice
Alma-0
AmbientTalk
Amiga E
AMOS
AMPL
AngelScript
Apex
APL

AppleScript
APT
Arc
ARexx
Argus
Assembly language
AutoHotkey
AutoIt
AutoLISP / Visual LISP
Averest
AWK
Axum
B
B
Babbage
Ballerina
Bash
BASIC
Batch file (Windows/MS-DOS)
bc
BCPL
BeanShell
Bertrand
BETA
BLISS
Blockly
BlooP
Boo
Boomerang
Bosque
Bourne shell (including bash and ksh)
K
K
Kaleidoscope
Karel
KEE
Kixtart
Klerer-May System
KIF
Kojo
Kotlin
KRC
KRL
KRL (KUKA Robot Language)
KRYPTON
Korn shell (ksh)
Kodu
Kv
L
LabVIEW
Ladder
LANSA
Lasso
Lava
LC-3
Legoscript
LIL
LilyPond
Limbo
Limnor
LINC
Lingo
LINQ
LIS
LISA
Language H
Lisp – ISO/IEC 13816
Lite-C
Lithe
Little b
LLL
Logo
Logtalk
LotusScript
LPC
LSE
LSL
LiveCode
LiveScript
Lua
Lucid
Lustre
LYaPAS
Lynx
P
P
P4
P′′
ParaSail (programming language)
PARI/GP
Pascal – ISO 7185
Pascal Script
PCASTL
PCF
PEARL
PeopleCode
Perl
PDL
Pharo
PHP
Pico
Picolisp
Pict
Pig (programming tool)
Pike
PILOT
Pipelines
Pizza
PL-11
PL/0
PL/B
PL/C
PL/I – ISO 6160
PL/M
PL/P
PL/SQL
PL360
PLANC
Plankalkül
Planner
PLEX
PLEXIL
Plus
POP-11
POP-2
PostScript
PortablE
POV-Ray SDL
Powerhouse
PowerBuilder – 4GL GUI application generator from Sybase
PowerShell
PPL
Processing
Processing.js
Prograph
PROIV
Prolog
PROMAL
Promela
PROSE modeling language
PROTEL
ProvideX
Pro*C
Pure
Pure Data
PureScript
Python
T
T
TACL
TACPOL
TADS
TAL
Tcl
Tea
TECO
TELCOMP
Tensorflow
TeX
TEX
TIE
TMG, compiler-compiler
Tom
TOM
Toi
Topspeed
TPU
Trac
TTM
T-SQL
Transcript
TTCN
Turing
TUTOR
TXL
TypeScript
Tynker
U
Ubercode
UCSD Pascal
Umple
Unicon
Uniface
UNITY
Unix shell
UnrealScript
V
Vala
Verilog
VHDL
Vim script
Viper
Visual Basic
Visual Basic .NET
Visual DataFlex
Visual DialogScript
Visual Fortran
Visual FoxPro
Visual J++
Visual LISP
Visual Objects
Visual Prolog
VSXu
X
X++
X10
XAML
xBase
xBase++
XBL
XC (targets XMOS architecture)
xHarbour
XL
Xojo
XOTcl
XOD (programming language)
XPL
XPL0
XQuery
XSB
XSharp
XSLT
Xtend
C
C
C– (C minus minus)
C++ (C plus plus) – ISO/IEC 14882
C*
C# (C sharp) – ISO/IEC 23270
C/AL
Caché ObjectScript
C Shell (csh)
Caml
Cayenne
CDuce
Cecil
Cesil
Céu
Ceylon
CFEngine
Cg
Ch
Chicken
Chapel
Charm
CHILL
CHIP-8
chomski
ChucK
Cilk
Citrine
CL (IBM)
Claire
Clarion
Clean
Clipper
CLIPS
CLIST
Clojure
CLU
CMS-2
COBOL – ISO/IEC 1989
CobolScript – COBOL Scripting language
Cobra
CoffeeScript
ColdFusion
COMAL
Combined Programming Language (CPL)
COMIT
Common Intermediate Language (CIL)
Common Lisp (also known as CL)
COMPASS
Component Pascal
Constraint Handling Rules (CHR)
COMTRAN
Cool
Coq
Coral 66
CorVision
COWSEL
CPL
Cryptol
Crystal
Csound
CSS
Cuneiform
Curl
Curry
Cybil
Cyclone
Cypher Query Language
Cython
CEEMAC
CEEMAC
G
Game Maker Language(Scripting language)
GameMonkey Script
GAMS
GAP
G-code
GDScript
Genie
GDL
GEORGE
GLSL
GNU E
GNU Guile
Go
Go!
GOAL
Gödel
Golo
GOM (Good Old Mad)
Google Apps Script
Gosu
GOTRAN
GPSS
GraphTalk
GRASS
Grasshopper
Groovy
O
o:XML
Oak
Oberon
OBJ2
Object Lisp
ObjectLOGO
Object REXX
Object Pascal
Objective-C
Objective-J
Obliq
OCaml
occam
occam-π
Octave
OmniMark
Opa
Opal
OpenCL
OpenEdge ABL
OPL
OpenVera
OPS5
OptimJ
Orc
ORCA/Modula-2
Oriel
Orwell
Oxygene
Oz

M
M2001
M4
M#
Machine code
MAD (Michigan Algorithm Decoder)
MAD/I
Magik
Magma
Máni
Maple
MAPPER (now part of BIS)
MARK-IV (now VISION:BUILDER)
Mary
MATLAB
MASM Microsoft Assembly x86
MATH-MATIC
Maude system
Maxima (see also Macsyma)
Max (Max Msp – Graphical Programming Environment)
MaxScript internal language 3D Studio Max
Maya (MEL)
MDL
Mercury
Mesa
Metafont
MHEG-5 (Interactive TV programming language)
Microcode
MicroScript
MIIS
Milk (programming language)
MIMIC
Mirah
Miranda
MIVA Script
ML
Model 204
Modelica
Modula
Modula-2
Modula-3
Mohol
MOO
Mortran
Mouse
MPD
Mathcad
MSL
MUMPS
MuPAD
Mutan
Mystic Programming Language (MPL)
Q
Q (programming language from Kx Systems)
Q# (Microsoft programming language)
Qalb
Quantum Computation Language
QtScript
QuakeC
QPL
Qbasic
.QL
R
R
R++
Racket
Raku
RAPID
Rapira
Ratfiv
Ratfor
rc
Reason
REBOL
Red
Redcode
REFAL
REXX
Rittle
Rlab
ROOP
RPG
RPL
RSL
RTL/2
Ruby
Rust
W
WATFIV, WATFOR
WebAssembly
WebDNA
Whiley
Winbatch
Wolfram Language
Wyvern

Y
YAML
Yorick
YQL
Yoix
YUI
D
D
DAML
Dart
Darwin
DataFlex
Datalog
DATATRIEVE
dBase
dc
DCL
DinkC
DIBOL
Dog
Draco
DRAKON
Dylan
DYNAMO
DAX (Data Analysis Expressions)
E
E
Ease
Easy PL/I
EASYTRIEVE PLUS
eC
ECMAScript
Edinburgh IMP
EGL
Eiffel
ELAN
Elixir
Elm
Emacs Lisp
Emerald
Epigram
EPL (Easy Programming Language)
EPL (Eltron Programming Language)
Erlang
es
Escher
ESPOL
Esterel
Etoys
Euclid
Euler
Euphoria
EusLisp Robot Programming Language
CMS EXEC (EXEC)
EXEC 2
Executable UML
Ezhil
F
F
F#
F*
Factor
Fantom
FAUST
FFP
fish
Fjölnir
FL
Flavors
Flex
FlooP
FLOW-MATIC
FOCAL
FOCUS
FOIL
FORMAC
@Formula
Forth
Fortran – ISO/IEC 1539
Fortress
FP
Franz Lisp
Futhark
F-Script
H
Hack
HAGGIS
HAL/S
Halide (programming language)
Hamilton C shell
Harbour
Hartmann pipelines
Haskell
Haxe
Hermes
High Level Assembly
HLSL
Hollywood
HolyC
Hop
Hopscotch
Hope
Hugo
Hume
HyperTalk
I
Io
Icon
IBM Basic assembly language
IBM HAScript
IBM Informix-4GL
IBM RPG
IDL
Idris
Inform
J
J
J#
J++
JADE
JAL
Janus (concurrent constraint programming language)
Janus (time-reversible computing programming language)
JASS
Java
JavaFX Script
JavaScript(Scripting language)
Jess (programming language)
JCL
JEAN
Join Java
JOSS
Joule
JOVIAL
Joy
JQuery
JScript
JScript .NET
Julia
Jython
N
NASM
Napier88
Neko
Nemerle
NESL
Net.Data
NetLogo
NetRexx
NewLISP
NEWP
Newspeak
NewtonScript
Nial
Nice
Nickle (NITIN)
Nim
NPL
Not eXactly C (NXC)
Not Quite C (NQC)
NSIS
Nu
NWScript
NXT-G
S
S
S2
S3
S-Lang
S-PLUS
SA-C
SabreTalk
SAIL
SAM76
SAS
SASL
Sather
Sawzall
Scala
Scheme
Scilab
Scratch
Script.NET
Sed
Seed7
Self
SenseTalk
SequenceL
Serpent
SETL
SIMPOL
SIGNAL
SiMPLE
SIMSCRIPT
Simula
Simulink
Singularity
SISAL
SLIP
SMALL
Smalltalk
SML
Strongtalk
Snap!
SNOBOL (SPITBOL)
Snowball
SOL
Solidity
SOPHAEROS
Source
SPARK
Speakeasy
Speedcode
SPIN
SP/k
SPS
SQL
SQR
Squeak
Squirrel
SR
S/SL
Starlogo
Strand
Stata
Stateflow
Subtext
SBL
SuperCollider
SuperTalk
Swift (Apple programming language)
Swift (parallel scripting language)
SYMPL
SystemVerilog
Z
Z notation
Zebra, ZPL, ZPL2
Zeno
ZetaLisp
ZOPL
Zsh
ZPL
Z++