1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need help to build autmation tools in c#

Discussion in 'General Programming Chat' started by atom6402, Aug 14, 2011.

  1. atom6402

    atom6402 Junior Member

    Joined:
    Aug 17, 2009
    Messages:
    111
    Likes Received:
    85
    hey guys
    i need some tools which are nowhere sold
    i decided to code them myself
    as i see the fastest bots are running with sockets (winsock) and are mostly coded in vb.net or c#

    as i dont like vb i want to do it in c#, i only did some basic stuff with c# and i dont have a clue about sockets

    what do you think ? is it easy to learn sockes and create bots with it
    if you are familiar with sockets i could hire you thx
     
  2. haylander

    haylander Registered Member

    Joined:
    May 24, 2009
    Messages:
    54
    Likes Received:
    20
    once you understand how http work, creating your own web sockets are easy.
    (you will encounter however some problems with ssl).
     
  3. RottenYellow

    RottenYellow BANNED BANNED

    Joined:
    Sep 10, 2010
    Messages:
    68
    Likes Received:
    16
    For C# you need to use WebClient, HttpWebRequest or TcpClient for HTTP. There are tons of code examples, just search for "C# http example" etc..
     
  4. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    All of which sit on top of the sockets layer and none naturally support socket proxies, only http proxies.

    If you want to code at the sockets layer, good luck with that as it would take you a couple of years to understand it and write all parsing functions needed just to surf the web... Since you are a beginner, do what RottenYellow said. If your automation job isn't to much, like single page submits and you aren't worried about proxies or speed, use a WebBrowser object. If you want speed, native proxy support, and more control, then use HttpWebRequest. TCPClient is more for a direct connection with another computer, something like a chat client would use. With that, you'll fight with firewalls to open ports and it isn't very user friendly. I used it on a backdoor/botnet before which didn't do very well because of the port/firewall problems.
     
    • Thanks Thanks x 1
  5. Subsonic

    Subsonic Regular Member

    Joined:
    Mar 17, 2011
    Messages:
    367
    Likes Received:
    333
    Location:
    DNS root zone database
    Better listen to him OP! If you don't have a clue about sockets you really shouldn't try to learn to use them (if you don't want to devote months for intensive learning). The information about C# socks programming and especially connecting through SOCKS proxies is very limited and scattered all around the internet.

    If you still want to build a program that uses sockets I suggest you to buy a library which handles everything for you, so you don't need to learn pretty much anything about the underlying techniques.
     
  6. xenon2010

    xenon2010 Regular Member

    Joined:
    Apr 27, 2010
    Messages:
    231
    Likes Received:
    48
    Occupation:
    web and desktop apps programmer
    Location:
    prison
    Home Page:
    nobody use sockets nowadays...
    if you are developing simple bots then go for webclient or webbrowser control...
    don't ever go near HttpWebRequest or Sockets as both will give you real headaches..
    HttpWebRequest gives you more settings and options but at same time it will give you lots of unwanted errors and headaches (use it only if you are developing advanced bots).. Sockets is the mother of all of the mentioned classes.. you really don't wanna waste your time learning it..