Hello There, Guest!
View New Posts  |  View Today's Posts
[VB.Net] MyBB Login Utility - Login to most MyBB websites

  • 1 Vote(s) - 5 Average


04-10-2013, 03:17 AM #11
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: MyBB Login Utility - Login to most MyBB websites
(04-10-2013, 01:57 AM)KoBE Wrote:  Once you're logged in though, you would use a get request to http://tech.reboot.pro/usercp.php

The class already does the login, all one would need to do is modify it and tell it to navigate to whatever link they wanted. So long as it used the same cookie container.

I haven't seen the class, but by the wording, it seemed odd lol. The key is to use the POST request for the login, and to keep that session open for the GET request to retrieve data from the UserCP though as you mentioned.

At first though I thought you didn't get enough sleep or something and you were suggesting a GET entirely instead of the POST at all lol.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

01-29-2014, 01:25 PM #12
Vlex
Junior Member
**
Posts: 7 Threads:1 Joined: Jan 2014 Reputation: 0

RE: MyBB Login Utility - Login to most MyBB websites
how would you add something like this to a program written c#. I want to allow a certain usergroup access to the program

01-29-2014, 02:40 PM #13
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: MyBB Login Utility - Login to most MyBB websites
(01-29-2014, 01:25 PM)Vlex Wrote:  how would you add something like this to a program written c#. I want to allow a certain usergroup access to the program

In simplest form, you could do a POST request via the user inputted credentials to the program for the user to login, and once logged in (if login was successful), navigate to the usercp and check the logged in user's group. You don't want to interact directly with the MyBB database because this would require grabbing that information to access that secure area from the program, which could be intercepted by a bad user. However, just doing a MyBB login like this could also be bypassed by an experienced .NET programmer or hacker that knows how to manipulate the authentication for access to the program.

What you're trying to do involves no easy solution.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

01-29-2014, 04:23 PM #14
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: MyBB Login Utility - Login to most MyBB websites
Like what Ace said, the simplest way to handle such a task would be to login then navigate to a page that has the info you want (either UserCP or their Profile page would work) and parse the html to figure out the user group.

01-29-2014, 04:45 PM #15
Vlex
Junior Member
**
Posts: 7 Threads:1 Joined: Jan 2014 Reputation: 0

RE: MyBB Login Utility - Login to most MyBB websites
I could do that to grant that usergroup access to the program?

01-29-2014, 04:50 PM #16
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,862 Threads:494 Joined: Jun 2011 Reputation: 67

RE: MyBB Login Utility - Login to most MyBB websites
Yeah, basically you'd login, go to the page with their usergroup info, determine their group, then give access depending on what you find.

02-10-2014, 08:59 AM #17
Nestar
Junior Member
**
Posts: 2 Threads:0 Joined: Feb 2014 Reputation: 0

RE: MyBB Login Utility - Login to most MyBB websites
This doesn't work for me. I get

> The remote server returned an error: (404) Not Found.

on line

> Dim response As HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse)

02-10-2014, 02:32 PM #18
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: MyBB Login Utility - Login to most MyBB websites
(02-10-2014, 08:59 AM)Nestar Wrote:  This doesn't work for me. I get

> The remote server returned an error: (404) Not Found.

on line

> Dim response As HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse)

You do know what a 404 error means correct? Unsure


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

02-10-2014, 03:11 PM #19
Nestar
Junior Member
**
Posts: 2 Threads:0 Joined: Feb 2014 Reputation: 0

RE: MyBB Login Utility - Login to most MyBB websites
(02-10-2014, 02:32 PM)AceInfinity Wrote:  You do know what a 404 error means correct? Unsure

Yep, I know what a 404 error is and I double-checked to make sure everything is where it belongs on the webserver.

02-10-2014, 03:18 PM #20
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: MyBB Login Utility - Login to most MyBB websites
(02-10-2014, 03:11 PM)Nestar Wrote:  
(02-10-2014, 02:32 PM)AceInfinity Wrote:  You do know what a 404 error means correct? Unsure

Yep, I know what a 404 error is and I double-checked to make sure everything is where it belongs on the webserver.

If you're getting a 404 you're navigating to a page that does not exist.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲




Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
   Screenshot Utility with Auto Upload KoBE 12 7,973 08-28-2014, 08:12 PM
Last Post: KoBE
   [Source] Twitter Login/Post Tweet Example (Without API, SDK or Webbrowser) idb.exe 10 10,889 06-06-2014, 11:16 PM
Last Post: hoangseo
  login to the site with get method kenshiro 3 2,265 05-19-2014, 09:58 AM
Last Post: KoBE
   Login to a Website using WebRequests. KoBE 74 50,692 04-12-2014, 02:03 PM
Last Post: Mariusz12345
  How to make httpwebrequest login facebok account in listbox DilarangMasuk 3 3,142 10-05-2013, 10:51 AM
Last Post: AceInfinity


Users browsing this thread: 1 Guest(s)