Scapy: All-in-One Networking ToolA network is an essential part of any cyber infrastructure. There are various tools available for the networking part of pentesting and other security assessment tasks like Nmap, tcpdump, arpspoof, etc., but one tool which stands out of all is Scapy.Scapy is a powerful interactive packet manipulation tool written in Python, and the best part is that it can also b..
기본적인 명령어 지원하는 레이어(프로토콜) 보기Displays all the protocols supported by Scapy. Usage example: ls(TCP)>>> ls() 지원하는 함수(명령) 보기Displays the list of commands supported by Scapy. Usage example: lsc()>>> lsc() 설정 보기Displays configurations options.>>> conf 설정 변경(conf.변수 = '변경값')>>> conf.iface = 'eth0' 도움말 보기>>> help() Display help on a specific command. Usage example: help(sniff) 패킷 구성 세부 정보 보기Display the de..
Scapy 2.3.1 Scapy is a tool, written in Python, for manipulating network packets. It can be used for capturing packets, forging them and decoding them. And that is just the tip of the iceberg, there are also a lot of other network related tasks that Scapy can handle. Scanning: The act of probing a host machine to identify any specific detail about it. Eg. Port scanning.Sniffing: The act of inter..
PySide - Combine (Show, About, Close) combine.ui MainWindow 0 0 731 475 MainWindow 0 0 731 21 &File Show &CCPL &About false Close &X action_Close triggered() MainWindow close() -1 -1 365 237 cs $ pyside-uic combine.ui > ui_combine.py combine.qrcimage/quit.pngimage/about.pngimage/show.png cs $ pyside-rcc combine.qrc -o qrc_combine.py combine.py#!/usr/bin/python# -*- coding: utf-8 -*- # combine.py..
PySide - Show Licence (File Open) licence.ui MainWindow 0 0 654 467 MainWindow &Show Lincence Qt::Horizontal 507 26 0 0 654 29 cs $ pyside-uic licence.ui > ui_licence.py licence.py#!/usr/bin/python# -*- coding: utf-8 -*- # licence.py - this small program reads and displays licence details. import sysfrom PySide.QtGui import QApplication, QMainWindow, QTextEdit, QPushButtonfrom ui_licence import ..
PySide - About Box about.ui MainWindow 0 0 654 467 MainWindow &About Qt::Horizontal 548 26 Qt::Vertical 20 355 0 0 654 29 cs $ pyside-uic about.ui > ui_about.py about.py#!/usr/bin/python# -*- coding: utf-8 -*- # about.py - display about box with info on platform etc. import sysimport platformimport PySidefrom PySide.QtGui import (QApplication, QMainWindow, QMessageBox)from ui_about import Ui_Mai..
PySide - Close Button quitter.ui MainWindow 0 0 348 255 MainWindow Qt::Horizontal 282 20 Quit Qt::Vertical 20 175 0 0 348 21 pushButton clicked() MainWindow close() 318 36 173 127 cs $ pyside-uic quitter.ui -o ui_quitter.py quitter.py#!/usr/bin/python# -*- coding: utf-8 -*- # quitter.py- provide a button to quit this "program" import sysfrom PySide.QtGui import QMainWindow, QPushButton, QApplica..
PySide - QMessageBox #!/usr/bin/python# -*- coding: utf-8 -*- import sysimport PySidefrom PySide.QtGui import QApplicationfrom PySide.QtGui import QMessageBox # Create the application objectapp = QApplication(sys.argv) # Create a simple dialog boxmsgBox = QMessageBox()msgBox.setText("Hello World - using PySide version " + PySide.__version__)msgBox.exec_() cs
PySide Binaries OS XTo install PySide in Mac OS X, you need to install both PySide and the appropriate Qt version. PySide 1.2.1 / Qt 4.8Qt for Mac OS X Download:qt-mac-opensource-4.8.5.dmg PySide를 설치하기 전에 먼저 Qt 4.8.5를 설치한다.Note: PySide is not yet compatible with Qt 5.x. Please use Qt 4.8 instead.Qt는 컴퓨터 프로그래밍에서 GUI 프로그램 개발에 널리 쓰이는 크로스 플랫폼 프레임워크이다. PySide 1.2.1 for Python 2.7 Download:pyside-1.2...
프롬프트(Prompt)는 컴퓨터가 입력을 기다리고 있음을 가리키기 위해 화면에 나타나는 표시 명령어 중심의 시스템에서는 명령어를 받아들이기 위한 준비가 되었을 때, 미리 정해진 부호를 나타낸다. 유닉스(리눅스)에서는 $ 또는 #를 나타낸다. 터미널을 사용할 때 프롬프트(Prompt)는 정보를 가지고 있으며, Bash(Bourne-again) Shell에서 프롬프트(Prompt) 정보는 PS1이라는 변수에 들어있다. 현재 사용하는 Shell은 환경변수를 통해서 확인이 가능하다. $ echo $SHELL 같은 방법으로 PS1의 정보도 다음과 같이 확인할 수 있다. $ echo $PS1 현재 시스템에서 사용이 가능한 Shell의 종류는 다음과 같다. $ cat /etc/shells Shell 변경은 chsh ..
- 프롬프트 변경# vi /etc/bashrc PS1 초기 상태 PS1 값 변경 PS1="\[$(tput setaf 1)\][\u:\W]\\$ \[$(tput sgr0)\]" 변경 후 재시작하면 적용된 결과 확인 가능# shutdown -r now - 운영체제 버전 확인# cat /etc/*release* - 리눅스 커널 버전 확인# uname -a # cat /proc/version - 리눅스 시스템 비트 확인# arch# getconf LONG_BIT - CPU 정보# cat /proc/cpuinfo - 메모리 정보# cat /proc/meminfo - 파티션 정보# cat /proc/partitions - 호스트네임 정보# hostname