MyBB Tutorials

HOWTO: Log MyBB usernames and passwords to a file

Submitted by Kawaii, , Thread ID: 31772

Thread Closed
Kawaii
Novice
Level:
0
Reputation:
4
Posts:
22
Likes:
0
Credits:
31
01-04-2017, 09:30 PM
This post was last modified: 22-05-2017, 09:32 AM by Kawaii
#1
This is my first tutorial here. Some sketchy kid is going to find this quite useful.

Please use this responsibly, and now that you know how this is done - never use the same password on a forum as you do on any other website!

Content locked
This content has been locked. Please login or register in order to unlock it.


Remember that the path of the text file is relative - it is just an example of where I might store my copy of MyBB, you need to edit the command and PHP code accordingly!

For security you could hide the text file up one directory level, within the Linux file system where visitors to your forum can't access (unless you have some kind of directory traversal vulnerability on your webserver).

I hope that you guys enjoyed this.



BONUS CONTENT:

So, you just followed the tutorial and now you want to make all of your users logged out?

Connect to your SQL database and run the following query:

Code:
UPDATE mybb_users SET loginkey='';

This will force all users to login again, meaning you can harvest all of their passwords when they do so.

Or, if you'd like to be covert and only get one particular user's password do this, and replace x with their UID:

Code:
UPDATE mybb_users SET loginkey='' WHERE uid=x;

RE: HOWTO: Log MyBB usernames and passwords to a file

Supreme
ZmFnZ290
Level:
0
Reputation:
189
Posts:
2.02K
Likes:
342
Credits:
585
01-04-2017, 09:39 PM
#2
Thanks for the post.
[Image: xvv2qQA.png]

RE: HOWTO: Log MyBB usernames and passwords to a file

Kawaii
Novice
Level:
0
Reputation:
4
Posts:
22
Likes:
0
Credits:
31
OP
01-04-2017, 10:32 PM
#3
01-04-2017, 09:39 PM
Widget Wrote:
Thanks for the post.

Thanks, I've updated the OP with some free bonus content - telling you how to force your users to logout so that they have to login again. Smile

RE: HOWTO: Log MyBB usernames and passwords to a file

Supreme
ZmFnZ290
Level:
0
Reputation:
189
Posts:
2.02K
Likes:
342
Credits:
585
01-04-2017, 10:33 PM
#4
01-04-2017, 10:32 PM
Kawaii Wrote:
Thanks, I've updated the OP with some free bonus content - telling you how to force your users to logout so that they have to login again. Smile

Cool Cool, very nice! Thanks for sharing.
[Image: xvv2qQA.png]

RE: HOWTO: Log MyBB usernames and passwords to a file

waseror
Closed Account
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
3
16-04-2017, 07:02 PM
#5
Thanks for sharing, I need

RE: HOWTO: Log MyBB usernames and passwords to a file

Kawaii
Novice
Level:
0
Reputation:
4
Posts:
22
Likes:
0
Credits:
31
OP
21-04-2017, 08:59 PM
#7
17-04-2017, 12:25 AM
pertatek Wrote:
Hey you idiot just read this rules:
http://nulledbb.com/misc.php?action=help

I fail to see how this educational tutorial violated any of those rules. This is a morally grey zone to be honest. I've seen two different staff read this thread now so if it were breaking any site policy I'm sure it would already have been removed.

RE: HOWTO: Log MyBB usernames and passwords to a file

justgo
Newbie
Level:
0
Reputation:
0
Posts:
19
Likes:
2
Credits:
14
24-04-2017, 07:44 PM
#8
people should really never use same password for evrything

RE: HOWTO: Log MyBB usernames and passwords to a file

Anish
Closed Account
Level:
0
Reputation:
1
Posts:
53
Likes:
6
Credits:
37
27-04-2017, 06:00 AM
#9
Posting to come back and unlock this.

RE: HOWTO: Log MyBB usernames and passwords to a file

Kawaii
Novice
Level:
0
Reputation:
4
Posts:
22
Likes:
0
Credits:
31
OP
01-05-2017, 02:50 PM
#10
27-04-2017, 06:00 AM
Anish Wrote:
Posting to come back and unlock this.

Thank you for your interest! ^_^

Users browsing this thread: 1 Guest(s)