• ⚠️ UK Access Block Notice: Beginning July 1, 2025, this site will no longer be accessible from the United Kingdom. This is a voluntary decision made by the site's administrators. We were not forced or ordered to implement this block.

EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
amicable

View attachment 179756

what am i even looking at
blend

basically, this piece of code writes (credentials) to a file if inserted into a login form at the code level (something only a rogue admin or someone with write access to a site's code can do)

  • file_put_contents (writing function)
  • . The example uses .htaccessPassword because .htaccess* files are typically hidden from public view with both Apache and nginx
  • $_POST['u'] can be a username entry field
  • ^^^ is a separator, optional.
  • $_POST['pw'] can be a password
  • \n is a new line (so you don't get all the data in one line)
  • 8 = FILE_APPEND (don't overwrite, write as if one adds to a diary)

PS: There is a reason I use unique passwords (and save to encrypted password manager on Firefox)... log resistance (can't login to the email I used for signup with any of my SaSu passwords, and vice versa)... and anti phishing (password manager checks domain for me as well)

PS 2: this code doesn't check for blank values, so an attacker will have to grep (search file) for non blank lines before beginning use of their ill-obtained credentials.

PS 3: There is little risk sharing this coz a variant of this has already been used ages ago by hackers on different sites.
 
Last edited:
  • Informative
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
endear

blend

basically, this piece of code writes (credentials) to a file if inserted into a login form at the code level (something only a rogue admin or someone with write access to a site's code can do)

  • file_put_contents (writing function)
  • . The example uses .htaccessPassword because .htaccess* files are typically hidden from public view with both Apache and nginx
  • $_POST['u'] can be a username entry field
  • ^^^ is a separator, optional.
  • $_POST['pw'] can be a password
  • \n is a new line (so you don't get all the data in one line)
  • 8 = FILE_APPEND (don't overwrite, write as if one adds to a diary)

PS: There is a reason I use unique passwords (and save to encrypted password manager on Firefox)... log resistance (can't login to the email I used for signup with any of my SaSu passwords, and vice versa)... and anti phishing (password manager checks domain for me as well)

PS 2: this code doesn't check for blank values, so an attacker will have to grep (search file) for non blank lines before beginning use of their ill-obtained credentials.

i need to learn this kind of shit; i don't reuse passwords but this is next level.
 
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
endear



i need to learn this kind of shit; i don't reuse passwords but this is next level.
earrings

Yep. That could be how some password lists are generated... most passwords from lists are either phished, logged thru site compromise.. or not hashed / poorly hashed (but even poor hashing is better than none... 16 random characters take ages to crack)

Thise lists can be used legally to try and block insecure passwords (eg, the top 10,000)

By suggesting random passwords on a site I control... even if an attacker gains access and inserts this kind of logger in... there is less use, coz the users already are suggested random passwords.
 
  • Informative
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
rings
(lol)

i barely understand any of what you said, but that makes me feel like i should learn...
 
  • Informative
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
rings
(lol)

i barely understand any of what you said, but that makes me feel like i should...
streams

TLDR: avoid reusing passwords (use random passwords on new accounts, etc)... and use an encrypted password manager.
 
  • Informative
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
Amsterdam
(maybe cheating...)

what is the deal with password managers? aren't they tied to a device, or profile? don't i need a password if there's a profile? haha
 
  • Informative
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
Amsterdam
(maybe cheating...)

what is the deal with password managers? aren't they tied to a device, or profile? don't i need a password if there's a profile? haha
dams

They can help one generate random passwords (firefox uses 15 random chars), ensure one doesn't logon to phishing/cloned sites (assuming they didn't always use the clone site in the first place) coz they will not fill in the password, and some can even sync encrypted passwords between devices.

Oh yes, they have a master password usually. Remember 1 password vs many :)
 
  • Informative
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
serpent
(had to escape that)

but what happens if you forget the one password to rule them all?? and/or someone else figures it out? then they have all your passes right?
 
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
serpent
(had to escape that)

but what happens if you forget the one password to rule them all?? and/or someone else figures it out? then they have all your passes right?
pentagon

oh yep, which is why locking the PC when I step away from it... and regularly entering that password (at least a few times a week, coz I'll eventually close firefox) occurs
 
  • Informative
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
gonad

i know it's probably safer overall but for now i think i may keep my passes in my brain...have to read more about this when less 😪
 
  • Hugs
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
gonad

i know it's probably safer overall but for now i think i may keep my passes in my brain...have to read more about this when less 😪
advertisement

okie. I keep some passes in my brain still.
 
  • Love
  • Like
Reactions: darksouls and R. A.
R. A.

R. A.

Some day the dream will end
Aug 8, 2022
1,612
mentality

thank you for explaining!
 
  • Like
Reactions: darksouls and EmptyBottle
EmptyBottle

EmptyBottle

🔑 Friends with Aera23
Apr 10, 2025
1,136
erratic (site loading speed earlier)
 
  • Like
Reactions: LighthouseHermit and R. A.

Similar threads

L
Replies
13
Views
230
Forum Games
FadingSnowFake
FadingSnowFake
Gl1tch3d G1rl
Replies
43
Views
742
Forum Games
darksouls
darksouls
N
Replies
4
Views
237
Suicide Discussion
_Gollum_
_Gollum_
FloatingJellyfish
Replies
22
Views
513
Suicide Discussion
FloatingJellyfish
FloatingJellyfish
ely.li
Replies
8
Views
685
Suicide Discussion
Terrible_Life_99
T