Jump to content
xisto Community

sourabhj

Members
  • Content Count

    48
  • Joined

  • Last visited

Posts posted by sourabhj


  1. Hello

     

    Thanks for the nice tutorial...but can you help me get it working for utherverse.com? that is https://www.utherverse.com/login.aspx will try to do it myself now...if anyone can help me that would be great..

     

     

    Thanks

     

    This tutorial will teach you how to login in gaiaonline through vb.net.

    I'll do it with a way that you don't need to leave vb.net to get/post (bad joke) anything.

     

    What you need in this tutorial is:

    Download and extract the Resources.rar file (i'll use 'c:\resources' in this project)

    This tutorial :)

    Now let's start

    Open the VS.NET and create a new project:

    Posted Image

    You now have something, that is called a form, let's rename it to GaiaLogin

    Posted Image

    Easy, let's take a look at the form

    Posted Image

    What?? Form1? But i renamed it...

    Ok, if you really said that just close this window right now.

    That's the title of the form, let's rename it

    Click on the form (anywhere)

    On the properties locate 'Text' and change 'form1' to 'GaiaOnline'

    Posted Image

     

    Ok, now we are talking.

    Let's insert 1 textbox on the form (see example for details)

    Posted Image

    Yes, simple as drag and drop, but i want this textbox to be multiline and to have a vertival scroll. (easier to see what you'll get from teh website)

    So, the way that i'm going to do this is to select the textbox and go to properties (like we did to change the form1 title to GaiaOnline) and select "multiline -> true" and "Scroolbars -> Both" (yes, i changed my mind)

    Now just resize the textbox, mine is like this:

    Posted Image

    ok, all set.

    Did you extract the Resources.rar?

    Let's use it.

    Save your project

    Copy the c:\recources\SleepModule.vb and c:\recources\Stuff.vb and c:\recources\wrapper.* to your project path (mine is C:\vb.net\GaiaLogin\GaiaLogin\)

    All set?

    Let's move then.

    Go back to your project.

    Let's add the references

    Posted Image

    Posted Image

    Ok, it was easy.

    Now we need to insert them on the project.

    You should have a tab that says "Object Browser", if you don't have it press "F2"

    Posted Image

    Ok, as shown in the picture, you select the Object to insert and click on the small button that is focused in the image.

    Do this to AxInterop.* and Interop.*

     

    Now let's add the modules to the project, select the gaionline project and follow the pictures.

    Posted Image

    Posted Image

    Press add and let's move to the code (press 2 times on the form):

    you should see this

    Posted Image

    Now, let's make some changes to the code:

    After

    Public Class GaiaLogin
    Add

    Dim wrap As New HTTPWrapper
    like this

    Posted Image

     

    Ok, we are ready to go.

    Let's see what gaia online has for us

    after this

    Private Sub GaiaLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    add

    TextBox1.Text = wrap.GetWrapper("http://gaiaonline.com")
    and press F5

    What did you got?

    Your first error B)

    The reason for that is that you shouldn't trust me as much as you think, you'll get some errors during this tutorials (come on, it's part of the job)

    Note, you need to stop the script before continue (to do this you have a play and a stop button in a bar, yes press the stop one)

    To solve this problem let's replace the above code with

    TextBox1.Text = wrap.GetWrapper("http://gaiaonline.com/")
    That's it, the slash :D

    So, now press F5

    Posted Image

    Wow, what is that?

    Yes, it's a little bit confusing, but it's easier to get what we want.

    Let's take a look to the code in that textbox.

     

    Done?

     

    What i found interesting was this:

    <form method="post" id="loginForm" action="http://login.gaiaonline.com/gaia/login.php">					<fieldset>				<label for="username">Username:</label><input type="text" id="username" name="username" tabindex="1" />			</fieldset>						<fieldset>				<label for="password">Password:</label><input type="password" id="password" name="password" tabindex="2" />						</fieldset>
    let's give it a try

    Close the window.

    In the code replace

    TextBox1.Text = wrap.GetWrapper("http://gaiaonline.com/")
    with

    TextBox1.Text = wrap.PostWrapper("http://login.gaiaonline.com/gaia/login.php", "username=Zer0&password=mypassword") 'please replace with your data
    and run the script again (F5)

    hmm, interesting.

    It's shorter

    HTTP/1.0 302 FoundDate: Tue, 11 Dec 2007 12:05:44 GMTServer: ApacheX-Powered-By: PHP/5.1.5Set-Cookie: gaia4_ano=13858786241197374744; path=/; domain=.gaiaonline.comSet-Cookie: gaia4_ano=13858786241197374744; path=/; domain=.gaiaonline.comSet-Cookie: gaia4_sid=0057f0c85e611139e4a9cf77d01986f9; path=/; domain=.gaiaonline.comSet-Cookie: gaia4_data=deleted; expires=Mon, 11-Dec-2006 12:05:43 GMT; path=/; domain=login.gaiaonline.comSet-Cookie: gaia4_ano=13858786241197374744; path=/; domain=.gaiaonline.comSet-Cookie: gaia4_sid=f5b0b6d0194b761d7d156ad280cfe74600002f258bec3d11; path=/; domain=.gaiaonline.comSet-Cookie: gaia4_data=a%3A1%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3B%7D; path=/; domain=login.gaiaonline.comLocation: gaiaonline.com/?login_success=1Content-Length: 0Vary: Accept-Encoding,User-AgentConnection: closeContent-Type: text/html
    let's see what info the next page will show.

    after

    TextBox1.Text = wrap.PostWrapper("http://login.gaiaonline.com/gaia/login.php", "username=Zer0&password=mypassword") 'please replace with your data
    add

    TextBox1.Text = wrap.GetWrapper("gaiaonline.com/?login_success=1;
    and press F5 again

    Hmm, bigger again. But look what i found in the code

    src="http://s.gaiaonline.com/images/gaia_global/gaia_header/ic_shortcuts.gif" alt="Shortcuts"/>Shortcuts</div></li>			<li id="messages"><a href="/profile/privmsg.php" class="newMail">(2)</a></li>		</ul>
    I have new mail, interesting, let's see if i can read it through vb (note that i am logged already)

    so the link to my private messages is?

    I'll let you answer this one.

    Let's keep going with the code.

    I want to read my messages now.

    after

    TextBox1.Text = wrap.GetWrapper("gaiaonline.com/?login_success=1;
    I'll add

    TextBox1.Text = wrap.GetWrapper("gaiaonline.com/auth/?redirect=%2Fprofile%2Fprivmsg.php;
    and press F5 again

    And yes, after a while i found this

    <img src="http://s.gaiaonline.com/images/template/folder_new.gif" width="19" height="18" alt="New Message" title="New Message" /></td>							<td valign="top"><span class="topictitle"><a href="/profile/privmsg.php?folder=inbox&mode=read&id=4537.1478364922" class="topictitle"><strong>You've received a special gift!</strong><br /><span class="gensmall" style="font-weight:normal;"></span></a></span></td>							<td valign="top"><span class="name"> <a href="/profile/?view=profile.ShowProfile&item=4537" class="name"  style="font-weight:bold;color:#D75252"><strong>[NPC] Rina</strong></a></span></td>			  <td NOWRAP><span class="postdetails"><strong>Thu Dec 06, 2007 5:36 am</strong></span></td>			  <td align="center"><input type="checkbox" name="mark[]" value="4537.1478364922" /></td>			</tr>						<tr>			  <td colspan="5"><img src="http://s.gaiaonline.com/images/template/s.gif" width="1" height="2"></td>			</tr>			<tr bgcolor=#FFFFFF>							<td valign="top"><img src="http://s.gaiaonline.com/images/template/folder_new.gif" width="19" height="18" alt="New Message" title="New Message" /></td>							<td valign="top"><span class="topictitle"><a href="/profile/privmsg.php?folder=inbox&mode=read&id=10566556.1476371945" class="topictitle"><strong>(no subject)</strong><br /><span class="gensmall" style="font-weight:normal;"></span></a></span></td>							<td valign="top"><span class="name"> <a href="/profile/?view=profile.ShowProfile&item=10566556" class="name"  style="font-weight:bold;color: ##2244A2"><strong>ICAN'T SHOW YOU THIS NAME</strong></a></span></td>
    Wow, ok, i'm not going to show you that message now that we are logged.

    I just want to finish this.

    Let's move to the design again.

    But first, take a look at the code that is parsed to the html, you should notice that you have one thing different that show us that we are logged.

    Did you find it?

    Good, let's move then :(

    Remove that stupid textbox1.

    Create something similar to this

    Posted Image

    Ok, what you should know by now is how to set a name to a textbox or to a button (in the properties), so let's use our capabilities, i named the button as Loggin, the first textbox as username and the second as password.

    Let's move to the code (press 2 times on the form)

    Hmm, i forgot, you want to login using the button (:D see the errors are coming to us :()

    Ok, let's go back to the form, now, instead of clicking 2 times on the form, let's do the same on the button.

    Good, you should see a new thing on the code

    Private Sub Login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Login.Click	End Sub

    haha, let's move it.

    Add this to the login button

    Dim strHtml As String		strHtml = wrap.PostWrapper("http://login.gaiaonline.com/gaia/login.php", "username=" & username.Text & "&password=" & password.Text)		strHtml = wrap.GetWrapper("gaiaonline.com/?login_success=1;
    that's it, press F5, insert your data and try now.

    Easy hein? What?

    Nothing showed up?

    Damn, i forgot again, the thing we need to know that we are logged is "Gold:"

    Let's see.

    add this code to the button

    If InStr(strHtml, "Gold") Then			MsgBox("You are logged!")		Else			MsgBox("Loggin failed!")		End If
    Press F5 and insert your data

    Posted Image

    Hehe, cool... OK goo lu... What?

    You want to know the amount of gold in the account?

    But that's a new function... OK ok, calm down.

    It's also easy

    Let's change the if thing.

    After the "If instr(strhtml, "Gold") Then"

    Let's add

    Dim gold As String = wrap.iB(strHtml, "Gold: </span>", "<")			MsgBox("You have " & gold)
    The iB, is the function in between, if you had look to the code you would see that the amount of gold is between Gold: </span> and <, and that's what we want. Run the program.

    Posted Image

    HEHE, we did it.

    Now it's done, (donate i'm poor :))

    Now good luck at your code.



  2. I would say so. Your posts are improving with each one.
    Thank you for understanding the need to maintain high standards on the Xisto. As a volunteer Mod (we all are volunteers), we appreciate the effort and most members do too.


    Thanks
    Can i now apply for hosting application or wait, if i have to wait then when should i reapply.i have some querries too for hosting account,which are:-

    1) Is it right that IBP forum is included in hosting package?.

    2) If i have 200 hosting credits then can i remain inactive to forum for 200 days but if suppose i come back in 20 days for 2-3 days but doesnt post any thing then waht will happen will my credits will be used or what,i think hosting credits allow no of days i amy not post anything.

    Thanks

  3. I dont Like it very much as It is very heavy and unlike nis(norton internet security) we dont have any control over firewall like block network traffic,aslo there are very less customisation possible.it has a great fetaure which i like is backup tool(backup your file on symantec),but overall in my opinion its better to use earlier norton product :- Norton Internet security


  4. What do you mean Guide Lines there are alot of those in fact the Admin here are very strict about that kind of thing. They give out warnings for little things like spam, or one liners, which I guess is spam. And for more serious things they might even just ban you. So I think that there are alot of guid lines here.

    Ya i know there are many guidelines available by admins,i really appreciate that effort by admins,but my point is that a newbie doesnt know what mistake he is doing,so if possible,he should be informed what s wrong with post..

  5. HiYesterday i have applied for free hosting account ,but my application was rejected,as my post lacked quality,but i want to ask if now my post are acceptable enough to get my account,can i reapply or i have to wait sometime before reappling for hosting application,what are the rules for reappling for hosting .Please help I need my account. :lol: Thanks


  6. Hi i Think Everyone Knows About Google Talk And Yahoo messenger.Please Share Which One u prefer to use and why,what features u like.Well I like Gtalk since it is faster and we can save chat history in email,sharefile ,best voice chating experience get connected with orkut,chat from gmail.


  7. Hi I Have some suggetions for Posting credit reward1) a free .com domain redirection facility2) increase bandwidth and space and add some extra features to account.i know you provide a .com domain for 250 credits but it would be more attractive if u can just provide a .com redirection to existing subdomain for 100 or more credits.add some extra features for 50-100 credits.Also There should be some tips to members how to post i mean requirements of the good post i know there are guidlines but its confusing to newbies so if they are not posting like as desired they should be informed what they are laking,which u dont like.also some information when can one reapply for free website request if one's application gets rejected,as mine too have been rejected, iam just thinking when to reapply,do my post are now acceptable to qualify for free hosting.if one gets all the information it will be quite usefull.Thanks


  8. HiI need a Advertising solution to display ads in a software im developing and will be released as freeware but iwant to display ads in it so that i can also earn something,iam not cahrging anything for software,but just making a free ad supported software,any one please help,i approched to google but it says they currently do not support this,but will look in to it in near future.


  9. Hey guys you know I myself usually see these types of topics and never open them but this one is really great. You have to just read mails and <- snipped -> and see it for 60 sec. This site is reliable and very nice.

    http://pretty-mail.com

    If you feel nice please do add my name
    zak92
    as refferer as it was me who bought you this great news.
    Well its nice to earn maney by reading mail but can u please clarify the points below :---------------

    1) Does it really work?.
    2) here are many emailpays u but there payout is less how much they pay for each mail?.
    3) and how they send money?.
    4) have u received Money?.


    }

  10. Its a code iam sharing i found while reading about c, its a code from a winner of world most obsfucated code contest just have a look the output of the program is after the code

    #include <stdio.h>main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a)&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_,t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/"):t<-50?_==*a ?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a\+1 ):0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc \i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}


    Output of the program
    *****************************************************************************													 Output  Start Here*********************************************************************************On the first day of Christmas my true love gave to mea partridge in a pear tree.On the second day of Christmas my true love gave to metwo turtle dovesand a partridge in a pear tree.On the third day of Christmas my true love gave to methree french hens, two turtle dovesand a partridge in a pear tree.On the fourth day of Christmas my true love gave to mefour calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the fifth day of Christmas my true love gave to mefive gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the sixth day of Christmas my true love gave to mesix geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the seventh day of Christmas my true love gave to meseven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the eighth day of Christmas my true love gave to meeight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the ninth day of Christmas my true love gave to menine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the tenth day of Christmas my true love gave to meten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the eleventh day of Christmas my true love gave to meeleven pipers piping, ten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the twelfth day of Christmas my true love gave to metwelve drummers drumming, eleven pipers piping, ten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.****************************************************************************										   Output ends****************************************************************************
    Its a cool program what if this technique can be used to compress file make a program to create a c code for a file to be compressed it will then be compiled to exe when run produces the large file

  11. Is the space in package 2 150mb or 500mb ?

    its 150mb you can check it by clicking on view my credits link page in credits link .
    here are the details from the that page

    Welcome to Xisto,Ignore the above Hosting Credit System if you are not interested in the Free Web Hosting service offered by our site. If you want to apply for our Premium Free Web Hosting Account, you will require atleast,
    Package 1 ( 20mb w/ 500mb BW): 10 Credits
    Package 2 (150mb w/ 5000mb BW) : 30 Credits



  12. Clever coding. Of course, it's not the most efficient thing to go about creating global declarations in order to execute code, but... nice. :lol:
    Two (technical) questions:
    I) why'd you include stdio.h? I'm not seeing any c functions. Just adding kilobytes to the program size.
    II) why is everyone assuming a using std statement here? It doesn't make sense to do it in a public forum where some people *cough*me*cough* use ANSI strict styles for coding. It can also confuse newbies to C++.
    ~just a syntax argument.

    Yes u are right there is no use of stdio.h,actually its a like template ,i have been using, since std functions are sometimes needed and its time consuming and pain to write include statement in turboc 3.0 so i made a format which i copy paste in program then start coding.

  13. i would live without reading/writing but not with hearing/speaking because if i can hear/speak i can learn everything(mostly) which is the main goal of life and can make my work typing etc by speaking even post on forums as now computers are geting smarter:-text to speech speech to text,voice recognition ,also i can make other type instead ,so its best to live without reading/writing not without hearing/speaking


  14. I don't really have much knowledge about the DNA of Bacterias and it would be good if the researchers could confirm it that will it have a mutating effect on the species. I mean, though we aren't manipulating anything and just adding onto stuff, it could still lead to complications according to me.
    And about the Terrorist part. I can't think of a way that it'll help terrorists. But if they start storing their data onto their skins and DNA in near future, then actually the a countries might benefit a bit. I mean they could capture a person from some terrorist group and instead of interrogating him/her, could just hack into his skin and get the data!

    It's just too confusing now as we just know that storage is possible and not how and what type of and how it'll be accessible by outside. Could you please link to the source of this news sourabhj?

    ok iam giving the source details i have read this news on google news and the link to that news is http://international.nytimes.com/ please check it soon before link goes dead

     


  15. yes Researchers have succeeded in storing data in dna so there will be soon a time will come when we will not be gettting data stored on disks, computer chips, hard drives and good paper but we will be storing it on dna of bacteria.actually the four characters that represent the genetic coding in DNA ,work much like digital data. Character combinations can stand for specific letters and symbols so codes in genomes can be translated, or read, to produce music, text, video and other content. but now its in development stage and may be not relaible but soon it will be ,and they claim that bacterial information lasts as long as a species stays alive possibly a million years according to Professor Masaru Tomita, who heads the team of researchers at Keio University. Lets hope it comes soon so that we get rid of dirty disk crash

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.