notes
notes
writeup => step by step slove for a ctf or bb , you need to read more writeups =>
medium website
cybersec domains :
1- network sec
2- app sec
3- server sec (prevent ddos and so)
4- hardware sec if lost/stolen
5- endpoint sec(clients/pc)
6- physical sec
dos types:
ransomeware => encrept and demand fee, can infect endpoints and servers
wannacry encrypt and search for a vuln in SMB (enternal blue) if found then he
spread
ddos (is dos but preformed by botnets (ppl have been hacked(trojan) to dos a
server))
phishing :> mails to gain access by convincing ppl , social engineering=> 1. human
based 2. electronic based
===================================================================================
==============================================
data encryption:
crypto :
encryption
1- plaintext -(encryption key)-> ciphertext example of encryption => xor method
decryption:
reverse operation
symmatric enc is when the sender and reciver use the same key for enc and dec
(private key crypto)
asymmetric crypto (public key crypto)
hashing is a function that produce the same out givin the same in (md5,sha,argon2)
passwd <username> {if left with no username it will change the current user
password} (requires perm)
hashing is a one way function that takes input and return fixed output
hashing y722 integrety check
hashing types :
MD2
MD5
SHA1
SHA256
CRC32
hash clacs are calculators that provid the hash for any text or files
hash cracking : u have a word that u think will match > you hash it with the same
type of the hash u wanna crack > compaire them if they match its correct (could be
more than one word to try (dict attack))
infected :
--(input user = ahmed"--)
select * from x when username="ahmed"-- " and password="123")
Cookies:
cookie session
on clinet site server side
live longer expire on closing browser
even if browser closed
less secure more secure
store strings store objects
cookie format:
Cookie: PHPSSID:6a6sx48awfa468; role=support
this cookie is vuln bc after loging in as a sub u can change the role as admin and
get admin prev
JavaScript can create, read, and delete cookies with the document.cookie property.
With JavaScript, a cookie can be created like this: