Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Dark Proxy Dev Log

  1. #1

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m

    Dark Proxy Dev Log

    This is a dev log for my sig of my latest program DarkProxy , this program has been a idea I had many years but was never able to implement due to my own socket coding abilities. Recently I have been doing alot of researching to make this idea a reality and after nearly a year of experimenting finally got a satisfactory engine for the program coded.



    About
    -----
    Dark Proxy is a proxy server that runs on your local pc. Dark Proxy intercepts traffic from any website and inserts scripts directly into your browser
    of choice. This allows us to do some funky things such as changing the entire layout of a page , directly injecting bots into your web browser or blocking adverts.
    Dark Proxy uses the lua scripting engine to allow users to create custom scripts for any website.


    Dev Log
    --------
    MileStone 1 - Proxy engine and basic interface
    Engine was initially completed as a console app , converted to gui app and made a very basic interface for coding ontop of.






    Milestrone 2 - Lua script

    Next I wanted a scripting language inside my program I implemented lua script to do this and created a few custom functions while testing.

    The first script I wanted to make was one to remove this box :

    This is my finished script to do just that:

    Code:
    <trigger>hostname|www.neopets.com</trigger>
    pagehtml =    getpagehtml(); --Gets Current page html
    pos1 =    find(pagehtml,'Neopets on Facebook');  --Find position of neopets on facebook in html
    if pos1 > -1 then --Text was found
    pos2 = findreversed(pagehtml,"<table",pos1);   -- Search backward from the text Neopets on facebook for opening table tag
    pos3 = find(pagehtml,"table>",pos1) +6; --same as above but search forward for closing table tag
    finalhtml = trimstring(pagehtml,pos2,pos3); --Remove all content between the two table tags
    return finalhtml; --Return the new html to the web browser
    end

    It works (tested ie , firefox , chrome)!!





    Now we have that down.... more to come soon
    Last edited by DarkByte; 08-07-2015 at 11:11 AM.

  2. The Following 11 Users Say Thank You to DarkByte For This Useful Post:

    Aura (08-09-2015),Daviid (08-11-2015),DJ Music Man (08-10-2015),fairydust201 (08-09-2015),I_royalty_I (08-07-2015),j03 (08-07-2015),learningtoneopet1 (08-10-2015),looklook123123 (08-07-2015),npm (08-07-2015),potatoespotate (08-27-2015),Zachafer (08-07-2015)

  3. #2
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,077/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 7m
    Avg. Time Online
    3h 13m
    This is some serious futuristic, on some next-level botting.
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  4. The Following User Says Thank You to j03 For This Useful Post:

    DarkByte (08-07-2015)

  5. #3

    Joined
    Feb 2012
    Posts
    70
    Thanks
    3,108
    Thanked
    2,505/1,626
    DL/UL
    127/0
    Mentioned
    575 times
    Time Online
    62d 4h 17m
    Avg. Time Online
    21m
    Can't wait to see how far this goes for practical use.


    Sent from my iPhone using Tapatalk
    Last edited by j03; 08-07-2015 at 05:10 PM.

  6. The Following User Says Thank You to Naked Gamer For This Useful Post:

    DarkByte (08-07-2015)

  7. #4

    Joined
    Mar 2014
    Posts
    1,387
    Thanks
    1,217
    Thanked
    3,913/1,165
    DL/UL
    84/1
    Mentioned
    533 times
    Time Online
    134d 9h 16m
    Avg. Time Online
    52m
    I've always wondered where to start looking to learn how to bot.

    I feel like I could learn a LOT from this if you're to release it publicly.
    Looks amazing so far dude!

    Sent from my SCH-I545 using Tapatalk

  8. The Following User Says Thank You to Mophead For This Useful Post:

    DarkByte (08-09-2015)

  9. #5

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    Thanks , this will be fully public of course. This program is something I have wanted to make outside of neo for a long time the functions here are generic and work on any website. I hope people will make scripts for all kind of websites and not just cheating scripts either but also ones to expand user experience ect on certain sites.

    How it was envisioned was with a central website to upvote/downvote scripts for different things , comment ect. Then you can download and run all the scripts that intrest you. There is also a option form to diable/enable different scripts you have installed from running easily ill show that next sshot

  10. #6

    Joined
    Jan 2012
    Posts
    1,286
    Thanks
    1,292
    Thanked
    302/209
    DL/UL
    1096/0
    Mentioned
    213 times
    Time Online
    59d 13h 45m
    Avg. Time Online
    20m
    i cant wait to learn how to program yall inspire me for real this looks amazing i saw the tittle on skypes i am like what the hell is darkproxy looks cool af tho <3

  11. #7
    DJ Music Man's Avatar
    Joined
    Jul 2015
    Posts
    843
    Pronouns
    he/they/she
    Userbars
    3
    Thanks
    5,183
    Thanked
    1,014/381
    DL/UL
    8/0
    Mentioned
    59 times
    Time Online
    30d 11h 46m
    Avg. Time Online
    13m
    Wow, that's some serious shit, I love it.

  12. #8

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    Thanks people here is a e.g of a money tree grabber , very basic atm im adding to it now though

    As you can see scripting supports functions , returns ect and can even support classes (not shown here)

    Code:
    <trigger>exacturl|http://www.neopets.com/donations.phtml</trigger>
    
    function redirectto(tourl)
    --Switches the page html to a basic refresh script , tricks server into thinking it was redirected from the correct refferal page and allows us to redirect when we want
    newhtml = [['<!DOCTYPE HTML>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <meta http-equiv="refresh" content="1;url={theurl}">
            <script type="text/javascript">
                window.location.href = "{theurl}"
            </script>
            <title>DarkProxy</title>
        </head>
        <body>
            Redirecting...
        </body>
    </html>'
    ]];
    newhtml = replacestr(newhtml,"{theurl}", tourl);
    return newhtml;
    end
    
    
    
    
    function finditemlink(itemname)
       --finds a neopets item in the donation html and returns the take donation link
       pagehtml =    getpagehtml(); --Gets Current page html
       itemurl = ""; --Buffer to hold url if its found
       pos1 = find(pagehtml,">" .. itemname .. "<")      --Searches html for >itemname< e.g >Poisonous Jelly< , this is only here if item exist on page
       if pos1 == -1 then   --Item not there if -1
         -- Item does not exist
        return "";
       end
       pos2= findreversed(pagehtml,"takedonation_new.phtml",pos1); -- search backward from item name and find the take link start postion
       pos3 = find(pagehtml,"\"",pos2) -- find the next quote after the take donation link start (a quotes char code is 34)
       takelink = extractstring(pagehtml,pos2,pos3); --put the donation link in a var
       return ("http://www.neopets.com/" .. takelink);
          
    end
                                   
    
    
    testitem = "Smelly Jelly";
    takelink = finditemlink(testitem);
    if takelink != "" then
      html =  redirectto(takelink );
      return   html;
    end
    Last edited by DarkByte; 08-10-2015 at 07:51 AM. Reason: end tag out of quote

  13. #9

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    Tired of ads on neo? no ? me neither because we all use adblock. But what you may not know is that adblock blocks only the server the ads are hosted on , there is still some javascript neo injects into each page to refresh there ads. Constant javascript running in every neo tab you have open can be a resource hog so i made a block ad script for neo:

    This script :
    1.Blocks top ads
    2.Blocks right hand side ads

    Im also running my remove "like us on facebook" script at same time here just to make things even cleaner.
    Before:



    After:





    Oh look it works on mobile too!

    before:


    After:



    Heres the script , simple stuff:

    Code:
    --Although ads can be blocked in the url blocker for neo I prefer a script--This is because they inject javascript into the page to make ads refresh
    --Url blocking would still work in this case but we might aswell remove 
    --there scripts too increase performance
    <trigger>hostname|www.neopets.com</trigger>
    
    
    function removetopad(pagehtml)
       --Removes top banner ads entire table , and script inserted with it and the "advertisement" tag that neo puts next to it by deleting its entire <tr> tag
       
       pos1 = find(pagehtml,"adslug-opa-l.png");  --Always before neopets top page ads 
       rethtml = "";
       if pos1 > 1 then --Ad found
          pos2 = findreversed(pagehtml,"<tr>",pos1);
          pos3 = find(pagehtml,"</tr>",pos2);
          rethtml = trimstring(pagehtml,pos2,pos3); --remove the tr tags
       end
         return rethtml;
       
    end
    
    
    
    
    function removerightad(pagehtml)
       pos1 = find(pagehtml,"rubiconAdWrapper");  --Always before rightpage ads
       rethtml = "";
       if pos1 > 1 then --Ad found
          pos2 = findreversed(pagehtml,"<div",pos1);
          pos3 = find(pagehtml,"</div>",pos2);
          rethtml = trimstring(pagehtml,pos2,pos3); --remove the tr tags
       end
         return rethtml;
       
    end
    
    
    
    
    pagehtml =    getpagehtml(); --Gets Current page html
    filteredhtml = removetopad(pagehtml); --See if we need to filter the html of the page (returns a empty string if not)
    if filteredhtml ~= "" then
        pagehtml  = filteredhtml; -- a filter was added
    end
    
    
    filteredhtml = removerightad(pagehtml); --See if we need to filter the html of the page (returns a empty string if not)
    if filteredhtml ~= "" then
        pagehtml  = filteredhtml; -- a filter was added
    end
    
    
    
    
    
    
    return pagehtml;
    p.s idc about that account
    Last edited by DarkByte; 08-10-2015 at 07:25 PM. Reason: forgot @after@ mobile pic

  14. The Following 4 Users Say Thank You to DarkByte For This Useful Post:

    |2eap (08-29-2015),Chibicat (08-11-2015),I_royalty_I (08-11-2015),Zachafer (08-11-2015)

  15. #10

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    Config manager done , allows for settings to be injected directly into browser..



  16. The Following 4 Users Say Thank You to DarkByte For This Useful Post:

    Aura (08-11-2015),Chibicat (08-11-2015),I_royalty_I (08-11-2015),npm (08-11-2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •