Python 2 vs. Python 3: How These Versions Differ for Hackers & Cybersecurity [Tutorial]

preview_player
Показать описание

The Differences Between Python 2 & Python 3 for Hackers

Cyber Weapons Lab, Episode 171

Python is currently one of the most popular programming languages for cybersecurity scripts. However, there are two similar but distinct versions of Python. On this episode of Cyber Weapons Lab, several differences between python2 and python3 are explored.


Follow Null Byte on:
Рекомендации по теме
Комментарии
Автор

as a software engineer who uses python, i have some feedback. first, i think the video is great. these are the same differences i would highlight - though i'd very likely also include f-strings. so i want to make it clear up front that i like the video.

with that out of the way, the problem i see is there are two types of people - those who write code and those who run it. your audience is likely the latter. given this is true, people honestly just need to know "if it doesn't work in python 3, try python 2" or vice-versa. you've proven yourself in this video that a) python 3 is better, and b) python 2 is dead, and c) converting code between the two is quite simple. this makes me wonder why you're even covering it at all? if you need to convince yourself to convert everything to python 3 do it. it's not difficult (as you yourself have shown) so just get on with it already.

in a few years time you will look back at this and wonder why you kept bring up python 2. just assume everything is python 3, make everything python 3, and get on with your life. it reminds me of my dad trying to justify the need to use his windows xp system. i get it, he has emotional attachment, but discussing it to newbies at python serves no purpose other than to confuse them - particularly given your channel is not a programming channel.

Kamel
Автор

Basically you just check if you have () in print

terminasitor
Автор

Commands used in this video for Python 2:
1. python/python2, both of these commands will launch Python/Python 2 in the terminal.
2. print("null byte")/print "null byte", both of these commands will make Python 2 print out whatever is inbetween the two quotation marks.
3. type(2), an integer in computer science is a digit with no decimal places.
4. type(2.5), a float is capable of storing decimal places.
5. type(2.0), this command will return as a float.
6. print(3/2), when we divide two integers in Python 2 it's going to return as a integer.
7. print(3.0/2.0), this command will also return as a float.
8. print(u"now, this is unicode"), if we want to print this as Unicode then we're going to have to specify that.
9. print("this is actually ASCII"), when we print this by default it will not use Unicode but ASCII instead.

redpilledpatriot
Автор

Probably just scratched the surface with this video, you should make this into a small series

Tolstoievsky
Автор

Smashed the like button the moment I saw that wallpaper

cotneit
Автор

Hey @nullbyte can upload a tutorial for checking if an Android phone is hacked or not, or it has any file which harmful or share data

tiktoktrending
Автор

What is better to learn as beginner python 2 or python 3 and who is better and more effective in cyber security

abdulrahmanfaisal
Автор

Please make videos on how to trace back scammers

the_bootloop_guy
Автор

where's the best place i can learn python?

hoodie
Автор

@Null Byte
Hello
do you know a way to automatically convert python 2 code to python 3

morniang
Автор

Well python 2 doesn't support anymore in kali new versions

dekuwar
Автор

what happened to the previous host, cody was it?

melting
Автор

Nice video. Great difference explanation.

pratimadevi
Автор

did the admin of this channel change (wheres the guy that doesnt blink?)

mavericks.
Автор

Please help I do not have a strong computer and I want to decode this ramadane (0C-B6-D2-B8-74-A9).cap

toki
Автор

why is the pack so cheap in description

gavin
Автор

I think python actually started in 60s and 70s and wasnt highly used till 90s

hhandles
Автор

Install Tilix. You will never use another terminal again

margaretjansen
Автор

Hello bro i am big fan of you .plz bro add the subtitle in your video

youtubeshorts
Автор

I recommend you to take Zinc supplements. It is great for acne

thegripmaster