In this video, we will cover how to do simple scripting in Linux with Bash. We will learn about grep, cut, tr, for loops, if statements, and more.

Timestamps:

0:06 – Introduction & ping
3:10 – grep
3:46 – cut
5:15 – tr
5:50 – Writing a simple Bash ping script
11:20 – Improving our Bash script
14:15 – One line for loops
17:53 – Closing remarks

❓Info❓
___________________________________________
Hire me:

🔹The Cyber Mentor Merch🔹
___________________________________________

📱Social Media📱
___________________________________________
Website:
Twitter:
Twitch:
Discord:
LinkedIn:

💸Donate💸
___________________________________________
Like the channel? Please consider supporting me on Patreon:

Support the stream (one-time):

Hacker Books:
Penetration Testing: A Hands-On Introduction to Hacking:
The Hacker Playbook 3:
Hacking: The Art of Exploitation:
The Web Application Hacker’s Handbook:
Real-World Bug Hunting: A Field Guide to Web Hacking:
Social Engineering: The Science of Human Hacking:
Linux Basics for Hackers:
Python Crash Course, 2nd Edition:
Violent Python:
Black Hat Python:

My Build:
lg 32gk850g-b 32″ Gaming Monitor:
darkFlash Phantom Black ATX Mid-Tower Case:
EVGA 2080TI:
MSI Z390 MotherBoard:
Intel 9700K:
G.SKILL 32GB DDR4 RAM:
Razer Nommo Chroma Speakers:
Razer BlackWidow Chroma Keyboard:
CORSAIR Pro RBG Gaming Mouse:
Sennheiser RS 175 RF Wireless Headphones:

My Recording Equipment:
Panasonic G85 4K Camera:
Logitech C922x Pro Webcam:
Aston Origin Microphone:
Rode VideoMicro:
Mackie PROFX8V2 Mixer:
Elgato Cam Link 4K:
Elgate Stream Deck:

*We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

26 Comments

Prasoon Dubey

May 18, 2020

I completed this playlist just now. It was so simple and amazing.
for x in { 1..100} ; do
echo "Thanks a lot THE CYBER MENTOR"
done

Reply

HAITHAM HAMODA

May 18, 2020

Thanks from EGYPT guy

Reply

Lone Ghost _/__/_

May 18, 2020

Good shit

Reply

The Potter Man 6000

May 18, 2020

I couldn't get the seq to work. I had to use this instead:

"for ip in {1..254}"

Reply

Ali Azlan

May 18, 2020

for ip in ${cat iplist.txt}; do nmap -s5 -p 80 -T4 $ip & done
bash: ${cat iplist.txt}: bad substitution
plz help i searched for the whole net their solutions are working on their systems but not mine

Reply

Alexander Shumba

May 18, 2020

Brilliant tutorial sir. Thank you for the precise and concise delivery.

Reply

Set Maw Naing

May 18, 2020

Thanks sir

Reply

ranveer singh

May 18, 2020

well done very good content in all of your videos

Reply

Indiaking Tamilanda

May 18, 2020

this program also print statistics
at the end

Reply

heartbeat 0x01

May 18, 2020

Very clear explanation. thank you!!!!!!

Reply

Team Kipy

May 18, 2020

nice tutorial

Reply

Przemyalaw Placuk

May 18, 2020

watching from work and home, found you yesterday via network chuck's channel – awesome content man – for each video echo "Thank you!" 🙂

Reply

vamsi kolati

May 18, 2020

this is some classic explanation about bash awesome stuff

Reply

SunCee_Music

May 18, 2020

ping: .seq: Name or service not known

Reply

kirtika dommeti

May 18, 2020

great content and very good explanation. Thanks a lot

Reply

UBR Tech

May 18, 2020

When I write up the bash script and try to run it, I get an error that says… ping: .seq: Name or service not known. Wondering if you could help. Thanks for the video.

Reply

Chad Burrell

May 18, 2020

Very well done sir. I'll be supporting you.

Reply

Secordit

May 18, 2020

Really comprehensive run through the basics. Thanks, Mav!

Reply

pravin loke

May 18, 2020

Good content and explanation… keep posting such a nice videos….

Reply

takao sato

May 18, 2020

In the hacking World which is better bash or python?

Reply

Issam

May 18, 2020

your channel is a treasure thank you

Reply

Pema Lhanang

May 18, 2020

I plan to watch your videos every weekend. Awesome contents! Appreciate you Cyber Mentor:)

Reply

hackza

May 18, 2020

been watching your videos and it really helped me.. i appreciate your work and effort

Reply

Oliver Joshua Jacob

May 18, 2020

#/bin/bash

for ip in seq 1-254'; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -4 | tr -d ":" &
done

Reply

plushoom

May 18, 2020

awesome

Reply

Doğacan

May 18, 2020

Hello, thanks for the video. Can you please zoom on the terminal for mobile users? It's a pain to read the screen like this. Thank you

Reply

Leave a Reply