Shell Scripting - If & If/else

  Рет қаралды 63,439

HackerSploit

HackerSploit

Күн бұрын

Пікірлер: 66
@TaiKibris
@TaiKibris 6 жыл бұрын
your doing a great job at breaking down each topic! thank you
@fmj_556
@fmj_556 4 жыл бұрын
It's very hard to find the absolute basics in one place. Thanks for making these videos!!!
@ChillerDragon
@ChillerDragon 6 жыл бұрын
There Is no need for semicolon if newline Is used. Because newline and ; have a pretty similar effect in bash. Both ways are correct: If [ condition ]; then If [ condition ] then
@ko-Daegu
@ko-Daegu 6 жыл бұрын
ChillerDragon Thankx for the info
@unbekannter_Nutzer
@unbekannter_Nutzer 9 ай бұрын
Both are incorrect, since you need a blank before and after `cond`.
@ChillerDragon
@ChillerDragon 9 ай бұрын
@@unbekannter_Nutzer yes of course fixed my comment thanks
@iteachcyber5713
@iteachcyber5713 8 ай бұрын
Isnt it true that you can also use: if [[ $VARIABLE == "1" ]]; then echo​ "hi" fi @ChillerDragon
@unbekannter_Nutzer
@unbekannter_Nutzer 8 ай бұрын
@@iteachcyber5713 Instead of what? And why do you quote the 1?
@Agjmdpu
@Agjmdpu 4 жыл бұрын
Very informative. But you missed the nested part of if else conditions.
@RawApeFromAlbion
@RawApeFromAlbion Жыл бұрын
This simple video helped me finish something far beyond more complicated. Thanks for the tips on spacing etc., it's what helped me finish.
@Tksupreme
@Tksupreme 6 ай бұрын
amazing tutorial that finally helped me understand this concept after struggling with man pages and overly complicated blogs
@ajeetdev
@ajeetdev 3 жыл бұрын
You are my fav teacher , I learn a lots of things from your videos. Keeping doing this. Lots of love from india
@01andy17
@01andy17 4 жыл бұрын
Good job mate. Ive just started a course on udemy suppose to be for complete beginners, which i am. Unfortunately the guy isn't explaining things very well for a complete beginner. I'm really enjoying the slow pace and how you explain things.
@jumpu123
@jumpu123 6 жыл бұрын
Great work Alexis!
@vicyoslinuxofficial2607
@vicyoslinuxofficial2607 4 жыл бұрын
4:22 Hahahahaha. This part was funny. 😂😂😂😂😂 Thank you so much for the video. :)
@MrGFYne1337357
@MrGFYne1337357 6 жыл бұрын
Hsploit my hacker guru, you rock man!
@elviraeloramilosic9813
@elviraeloramilosic9813 6 жыл бұрын
Thank you!
@sarundayo
@sarundayo 5 жыл бұрын
Amazing series!
@Stressed_PhD_0831
@Stressed_PhD_0831 3 жыл бұрын
Thanks for these intro videos. Much appreciated!
@Gr33n37
@Gr33n37 6 жыл бұрын
thank you bro, its awesome
@theglobalconflict6904
@theglobalconflict6904 4 жыл бұрын
Yes :) you're right nano is easy and simple
@unbekannter_Nutzer
@unbekannter_Nutzer 9 ай бұрын
@3:35 5 errors in 5 lines of code? 1. The space after `if`is NOT optional. 2,3. single square brackets need spaces after opening and before closing, so it would be `if [ condition ]`. 4. The semicolon at the end of the line is superfluous, since it is a replacement for a newline, mostly used interactively. 5. The body of the if-statement is not a condition, but one or more statements. Later: You should not use ALLUPPERCASE for your shell variables, but have them reserved for the system. (Only a recommendation, not an error). You needn't mask "Alexis" with quotes, since it does not contain blanks or something else, which needs to be quoted. Quotation marks aren't markers for strings. Using them is again not an error, but it leads newcomers to the wrong assumption, that they are similar to other programming languages. They are not. The same is true for `echo Welcome Alexis`. Here you HAVE a blank, but echo will put a blank between any two parameters by itself. Just if you happen to use 2 or more blanks, you need quotation to preserve them. @8:35 `read` has an option for prompting: `read -p "Please enter your name " name` (note the trailing space in the quote). You don't ask for the username, because that is already known and it is $USER. @11:40 AI is going wild! No, the password file (/etc/passwd) does not contain the hashed passwords, /etc/shadow does. And you can't unhash them, that's the purpose of hashing them. Instead, the token the user uses to login is hashed by the same algorithm and if the hashing of his input matches the entry in /etc/shadow, he is let in.
@jazy1
@jazy1 6 жыл бұрын
Love your vids 💖
@somecatyoudontknow6471
@somecatyoudontknow6471 Жыл бұрын
This helped a lot. Thank you.
@refaiabdeen5943
@refaiabdeen5943 Жыл бұрын
Cheers Mate.
@1jeffhead
@1jeffhead 4 жыл бұрын
You're great, thank you.
@lukaspodvojsky7246
@lukaspodvojsky7246 6 жыл бұрын
Awesome tutorials, keep it up please ;).
@anonymousgerman2809
@anonymousgerman2809 2 жыл бұрын
Thankyou so much
@YannMetalhead
@YannMetalhead 2 жыл бұрын
Good video.
@brankobanjac9322
@brankobanjac9322 Жыл бұрын
Great video
@muhammed6007
@muhammed6007 2 жыл бұрын
Such a tutorial. Great job man:)
@AmeerHamza-jy5ml
@AmeerHamza-jy5ml 4 жыл бұрын
Sir only unary operators can work in "if condition" ? How we can use binary operators like (=) in if statement ?
@kelvinowusu9987
@kelvinowusu9987 6 жыл бұрын
Does the variable we are checking need to have quotes?
@top_movies2023sf
@top_movies2023sf 7 ай бұрын
Awesome ❤
@babatundefasheun5126
@babatundefasheun5126 4 жыл бұрын
How do you calculate 3^2 in using NASM? I have not been able to find a good explanation. Have you got a video you can share?
@unbekannter_Nutzer
@unbekannter_Nutzer 9 ай бұрын
I don't know for NASM, but in bash, it is ((3**2)).
@somnathgolui2912
@somnathgolui2912 4 жыл бұрын
Thank You Thanks a lot....................... for this.......
@fratquintero
@fratquintero Жыл бұрын
[5:25] That is not true. The space is needed in order for the shell interpreter to recognize correctly the "=" operator. No assignment can´t be made inside the [[ command
@JKTPila
@JKTPila 6 жыл бұрын
It's a nice tutorial
@F0R3STHiGHTS
@F0R3STHiGHTS 3 жыл бұрын
thx bro
@asmodeus4310
@asmodeus4310 3 жыл бұрын
Hey hackersploit, is there an elif statement in bash. If not, how to do that???
@whitedavil9463
@whitedavil9463 4 жыл бұрын
thanks
@pratikdigraskar
@pratikdigraskar 3 жыл бұрын
In my windows this code is not running what to do
@medicineman7894
@medicineman7894 2 жыл бұрын
This is great
@ajeetdev
@ajeetdev 3 жыл бұрын
Sir in my system not working showing some errors Command not found
@syscreeper4376
@syscreeper4376 Жыл бұрын
elliot be like : Hello Friend
@bara7979
@bara7979 Жыл бұрын
Starts at 2:28
@ronakrawal8325
@ronakrawal8325 6 жыл бұрын
Please teach us how to make hacking scripts in python
@wentaoqiu4072
@wentaoqiu4072 4 жыл бұрын
He uses 'condition' when he means 'statement' after if.
@neophyte88
@neophyte88 6 жыл бұрын
Hey man ..I am getting a error when I run the script It asks for input and then says "syntax error: unexpected end of file"
@arnavjain7564
@arnavjain7564 6 жыл бұрын
Is there an else if in bash?
@ChillerDragon
@ChillerDragon 6 жыл бұрын
Arnav Jain yes its called elif
@HackerSploit
@HackerSploit 6 жыл бұрын
Yes, i will be covering that next.
@bucketice300
@bucketice300 Жыл бұрын
are you now 45 ?
@subodhkamble6480
@subodhkamble6480 6 жыл бұрын
26th ❤️
@joshibhumit156
@joshibhumit156 6 жыл бұрын
Ha moj ha
@hp143007
@hp143007 6 жыл бұрын
First one!
@pauljojo831
@pauljojo831 6 жыл бұрын
epic
@pauljojo831
@pauljojo831 6 жыл бұрын
pls look at your email.
@kl14cdk74
@kl14cdk74 6 жыл бұрын
🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏🃏
@ravindraprajapati468
@ravindraprajapati468 6 жыл бұрын
999
@mesut96
@mesut96 2 жыл бұрын
Thank you so much for this video
Shell Scripting - Test Scripts
10:30
HackerSploit
Рет қаралды 38 М.
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
Modus males sekolah
00:14
fitrop
Рет қаралды 25 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
Shell Scripting - Ping Sweep Script
10:31
HackerSploit
Рет қаралды 39 М.
Hacking Windows TrustedInstaller (GOD MODE)
31:07
John Hammond
Рет қаралды 630 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 297 М.
Notepad.exe Will Snitch On You (full coding project)
53:30
John Hammond
Рет қаралды 241 М.
Shell Scripting - User Input & Comments
9:03
HackerSploit
Рет қаралды 37 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 248 М.
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН