A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[C#] Roliana Class

979 views · started by Bman ·
#1
[C#] Roliana Class
I started this earlier today, because I was bored.

All it has is a login so far, if you guys wanna work on it feel free.

Just a note:

Roliana has no captcha, so we can make a cracker for it :)

I already have one made, I am saving it for later, when the auth comes out.

Note Number 2 :

Header for message sending is :

http://www.roliana.com/forums/privmsg.php
username=Asydix&subject=Test&ft=Font+type&fs=Font+Size&fc=Font+Color&helpbox=Font+Type%3A+%5Bfont%3DTahoma%5Dtext%5B%2Ffont%5D&message=Testing&folder=inbox&mode=post&sid=08797283152b0f01b3bc5e24309e2db5&post=Submit


You can find the SID on the page in which you compose a message.

ANYWAYS, here is the class :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Roliana
{
class Roliana
{
HTTPWrapper wrapper = new HTTPWrapper();
// Urls :
private static String Rol_Url_Norm = "http://www.roliana.com/";
private static String Rol_Url_Forum = "forums/";
private static String Rol_Url_Login = "forums/login.php";
private static String Rol_Url_PM = "forums/privmsg.php";

// Method Links :
private static String Rol_Meth_Postpm = "?mode=post";

#region Login
public Boolean Login(String Username, String Password)
{
if (wrapper.post(Rol_Url_Norm + Rol_Url_Login, "username=" + Username + "&password=" + Password + "&redirect=..%2Findex.php&login=").IndexOf("Gold</li>") > -1)
{
return true;
}
else
{
return false;
}
}
#endregion
}
}
#2
        /// <summary> 
/// Takes argument data of the format: "username:password", where the delimiter is ':' or
/// specified.
/// </summary>
public bool Login(string data, char delimiter = ':')
{
string[] tmp = data.Split(delimiter);
return Login(tmp[0],tmp[1]);
}
[/1][/0]

In case we use the common username:userpassword formats. :P