Volume 8(3) 140-159 (2015) - 140
J Comput Sci Syst Biol
ISSN: 0974-7230 JCSB, an open access journal
Research Article Open Access
Bansal and Bansal, J Comput Sci Syst Biol 2015, 8:3
DOI: 10.4172/jcsb.1000182
Research Article
Open Access
Keywords: Security testing; Python; Scapy; Flaws
Introduction
Security is dened as “No unauthorized Access of information”.
Security is very essential to maintain the integrity of System [1,2].
Security Testing is the rst step to detect aws in the security measures
of System [3,4]. Security of System can be measured by following
criteria:
1. Condentiality: It denes certain rules and constraints to
access any important information
2. Integrity: Integrity means correctness of information. If the
integrity of information is reserved then quality of information will
denitely increased.
3. Authentication: Authentication is the process of identifying
identity of Person. is process is commonly done through username
and password.
4.
Authorization: Authorization means access rights. Access
Rights means whether user can read, write, and execute the le or
whether he has right to access the resource or not.
5. Non-repudiation: In reference to digital security, non-
repudiation means to ensure that a transferred message has been sent
by correct sender and received by correct receiver. is is done mainly
through digital certicates to ensure integrity of sender and receiver.
Security testing terminologies
1. Unit Testing: Testing is the strategy to detect faults in
the System. Unit testing means testing each line in a component or
modules.
2. Functional Testing: Functional Testing is used to measure
the quality of functional components of System.
3. System Testing: System Testing is used to measure the
eectiveness and eciency of whole System within real world
constraints.
Introduction to python
Python is fast, reusable and micro threaded language. Its byte
code generated is reusable in nature. at are 5 versions of Python
are: CPyhton, Jython, IronPython, Stackless and PyPy. All versions
have their own dierent features. But the standard among all of them
is CPython. Jython is python language with java byte code features,
IronPython is a Python language enables with dotnet framework,
Stackless is used for concurrency and PyPy has greater speed execution
than CPython. Its extension is .py normally.
Introduction to scapy
Scapy is a tool for manipulating interactive packets. is tool is
totally based on Python language. Python is an easy to learn, powerful
programming language [5,6]. It data structures are highly ecient and
bases on object oriented Programming. Python’s syntax is simple and
dynamic in nature, incorporated with feature of interpretation; make
it an ideal language for scripting and rapid application development
in many areas on most platforms. Scapy tool has the capability of
encoding, decoding, sending, matching senders and receivers and
many more [7,8].
Its interface is Python. Scapy tool is more powerful
tools than rewalls. It can detect faults in the security systems that
rewalls cannot detect.
Scapy interactive sessions can be started by putting undersigned
command at the shell prompt:
$ sudo scapy
Welcome to Scapy (2.0.1-dev)
>>:
C:\>scapy
INFO: No IPv6 support in kernel
WARNING: No route found for IPv6 destination :: (no default
route?)
Welcome to Scapy (2.0.1-dev)
>>>
For example:-
*Corresponding author: Shipra Bansal, Department of Computer Applications,
Lovely Professional University, Jalandhar, India, Tel: 9653450743; E-mail:
shipra_goelred@yahoo.co.in
Received
January 26, 2015; Accepted March 30, 2015; Published March 31,
2015
Citation: Bansal S, Bansal N (2015) Scapy – A Python Tool For Security Testing. J
Comput Sci Syst Biol 8: 140-159. doi:10.4172/jcsb.1000182
Copyright: © 2015 Bansal S, et al. This is an open-access article distributed under
the terms of the Creative Commons Attribution License, which permits unrestricted
use, distribution, and reproduction in any medium, provided the original author and
source are credited.
Abstract
Security Testing is the essential method of any information System and this method is used to detect aws in the
security measures in an Information System which protect the data from an unauthorized access. Passing through
the Security testing method does not ensure that aws are not present in the System. Python is a new emerging
Programming language. This research paper looks into the tool named Scapy which is based on Python language;
lists out some vital commands, explanation with examples and uses of Security Testing. This research paper, being
introductory one tries to give a brief description and understandable usage of the security Testing tool.
Scapy–A Python Tool For Security Testing
Shipra Bansal
1
* and Nitin Bansal
2
1
Department of Computer Applications, Lovely Professional University, Jalandhar, India
2
Department of Management, Lovely Professional University, Jalandhar, India
Journal of
Computer Science & Systems Biology
J
o
u
r
n
a
l
o
f
C
o
m
p
u
t
e
r
S
c
i
e
n
c
e
&
S
y
s
t
e
m
s
B
i
o
l
o
g
y
ISSN: 0974-7230