Two's Complement | PicoCTF 2017 [38] Guess The Number

  Рет қаралды 6,916

John Hammond

John Hammond

Күн бұрын

Пікірлер: 13
@lucky179009
@lucky179009 6 жыл бұрын
Best explanation of two's compliment i've heard. Going to use your method from now on lol
@60NoyCoolUser
@60NoyCoolUser 6 жыл бұрын
Great video. I solved it and needed an explanation. Your video was exactly what I needed. Thanks!
@_JohnHammond
@_JohnHammond 6 жыл бұрын
Happy to hear it, thanks for watching! :D
@anuragdeep3367
@anuragdeep3367 6 жыл бұрын
There is an even simpler method to get two's complement. Starting from least significant bit keep the value of the bits unchanged until you reach the first '1' and after that flip all the bits including the sign bit. Eg:- 0110->1010
@_JohnHammond
@_JohnHammond 6 жыл бұрын
NICE! This works great, thanks!
@anuragdeep3367
@anuragdeep3367 6 жыл бұрын
Thank you sir
@matthewreed2000
@matthewreed2000 6 жыл бұрын
I'm no expert, but I believe that the reason 32-bit ints are maxed at 2^31 is because there are 2^31 positive ints and 2^31 negative ints. 2^31 + 2^31 = 2(2^31) = 2^32
@_JohnHammond
@_JohnHammond 6 жыл бұрын
More expert than me :P Good to know, thank you!!
@wecksell
@wecksell 4 жыл бұрын
Exactly, one bit kind of becomes your sign indicator.
@wecksell
@wecksell 4 жыл бұрын
You want to try the operator xor, ^ in most languages, python: 0b0110^0b0101 A little easier than your replace method. Thanks for your videos, I have learnt alot from them!
@altf4thc
@altf4thc 6 жыл бұрын
why cant we push win on the stack and ret like we do in shells?
@zanidd
@zanidd 6 жыл бұрын
Cool use of something rather boring I had to learn for school. Nice to know that the stuff I'm learning at school can be used in ctfs xD
@_JohnHammond
@_JohnHammond 6 жыл бұрын
VERY RARELY, but sometimes there are crossovers xP
Chinese Remainder Theorem | PicoCTF 2017 [32] Weird RSA
6:14
John Hammond
Рет қаралды 7 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 45 МЛН
PicoCTF 2017 [17] Hash101
14:23
John Hammond
Рет қаралды 8 М.
Pseudorandom Number Generators | PicoCTF [30] SoRandom
5:58
John Hammond
Рет қаралды 4,9 М.
Getting Started in CTF: PicoCTF 2017 [09] keyz (SSH)
16:48
John Hammond
Рет қаралды 17 М.
What is a semaphore? How do they work? (Example in C)
13:27
Jacob Sorber
Рет қаралды 309 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 405 М.
How do Graphics Cards Work?  Exploring GPU Architecture
28:30
Branch Education
Рет қаралды 2 МЛН
USB Devices in Wireshark | PicoCTF 2017 [29] Just Keyp Trying
20:14
ZIP File Magic Bytes | PicoCTF 2017 [41] "Missing Identity"
8:05
John Hammond
Рет қаралды 12 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 80 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН