Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function getHardwareID() { goto ttrAq; GcyCG: foreach ($BAv5V a..

Decoded Output download

<?  function getHardwareID() { 
        goto ttrAq; 
        GcyCG: 
        foreach ($BAv5V as $pgMPS) { 
            goto JZjGC; 
            hDiXd: 
            goto wEr3a; 
            goto ijNnL; 
            yFBAj: Lb0O9: 
            goto S89WG; 
            JZjGC: 
            if (!($pgMPS != '' && $pgMPS != "00:00:00:00:00:00" && $pgMPS != "ff:ff:ff:ff:ff:ff")) { 
                goto FTeAg; 
            } 
            goto lwkrd; 
            lwkrd: 
            $VOThN[] = str_replace([""", "-", " "], ['', ":", ''], $pgMPS); 
            goto hDiXd; 
            ijNnL: FTeAg: 
            goto yFBAj; 
            S89WG: 
        } 
        goto MBzQ4; 
        aRL0Q: 
        if (shell_exec("which ip") != '') { 
            goto x8lgP; 
        } 
        goto y2ODS; 
        yCWrO: iV1G9: 
        goto Tpki1; 
        ttrAq: 
        $VOThN = []; 
        goto HyTmR; 
        bKrKz: 
        exec($W2MBr, $BAv5V, $ukh0k); 
        goto Wmn23; 
        MBzQ4: wEr3a: 
        goto t0MTi; 
        Wmn23: 
        if (!($ukh0k == 0 && is_array($BAv5V))) { 
            goto NZWDf; 
        } 
        goto GcyCG; 
        yKiqV: 
        if (is_array($cntd1) && count($cntd1) > 0) { 
            goto iV1G9; 
        } 
        goto aRL0Q; 
        wiKcs: 
        if (!($ukh0k == 0 && is_array($BAv5V))) { 
            goto ydEQ6; 
        } 
        goto Q_nXQ; 
        pEYB0: 
        goto REr1l; 
        goto pDz8C; 
        nPJae: 
        $W2MBr = "ip addr | grep -Eo '([[:xdigit:]]{1,2}[:-]){5}[[:xdigit:]]{1,2}'"; 
        goto kDRg4; 
        iwYw9: 
        $cntd1 = glob("/sys/class/net/*/address"); 
        goto yKiqV; 
        l5AHV: lzY_l: 
        goto Z9L4G; 
        mipuv: REr1l: 
        goto OwEAR; 
        BY6Wc: 
        unset($BAv5V[0]); 
        goto MYDTB; 
        OwEAR: 
        unset($W2MBr, $BAv5V, $ukh0k, $UccC9, $pgMPS, $rjWDu); 
        goto Hyn7I; 
        YGtcm: mo0Ot: 
        goto gSQjg; 
        Au1i7: 
        $W2MBr = "getmac /FO csv"; 
        goto xNuLG; 
        MYDTB: 
        foreach ($BAv5V as $pgMPS) { 
            goto ESB1A; 
            qS72M: wScis: 
            goto jlIxj; 
            rEp93: VRIZ_: 
            goto qS72M; 
            NUgcy: 
            $VOThN[] = str_replace([""", "-", " "], ['', ":", ''], $rjWDu[0]); 
            goto rEp93; 
            ESB1A: 
            $rjWDu = explode(",", $pgMPS); 
            goto Tn7EF; 
            Tn7EF: 
            if (!(isset($rjWDu[0]) && $rjWDu[0] != '' && stripos($pgMPS, "Disconnected") === false)) { 
                goto VRIZ_; 
            } 
            goto NUgcy; 
            jlIxj: 
        } 
        goto YrLC9; 
        kDRg4: 
        exec($W2MBr, $BAv5V, $ukh0k); 
        goto wiKcs; 
        eLOPe: YcvfS: 
        goto K4rZb; 
        Z9L4G: 
        goto EkBv8; 
        goto yCWrO; 
        gqzYx: 
        return $Eh_Dj; 
        goto Fxp8Z; 
        u33kQ: EkBv8: 
        goto pEYB0; 
        pDz8C: xsZJK: 
        goto Au1i7; 
        Q_nXQ: 
        foreach ($BAv5V as $pgMPS) { 
            goto wz2HI; 
            wz2HI: 
            if (!($pgMPS != '' && $pgMPS != "00:00:00:00:00:00" && $pgMPS != "ff:ff:ff:ff:ff:ff")) { 
                goto RD9vD; 
            } 
            goto mBzd7; 
            b5ank: 
            goto mo0Ot; 
            goto kB1s3; 
            Qg_Ro: uD2Dl: 
            goto m1us9; 
            mBzd7: 
            $VOThN[] = str_replace([""", "-", " "], ['', ":", ''], $pgMPS); 
            goto b5ank; 
            kB1s3: RD9vD: 
            goto Qg_Ro; 
            m1us9: 
        } 
        goto YGtcm; 
        Hyn7I: 
        if (!(count($VOThN) == 0)) { 
            goto YcvfS; 
        } 
        goto EjHyl; 
        t0MTi: NZWDf: 
        goto dkW3N; 
        dkW3N: pt3lB: 
        goto UnozI; 
        fJS1Q: 
        $W2MBr = "ifconfig | grep -Eo '([[:xdigit:]]{1,2}[:-]){5}[[:xdigit:]]{1,2}'"; 
        goto bKrKz; 
        qMca9: 
        $Eh_Dj = sha1("712d87ad3c5094ac6bfb5" . $VOThN[0]); 
        goto gqzYx; 
        gSQjg: ydEQ6: 
        goto l5AHV; 
        xNuLG: 
        exec($W2MBr, $BAv5V, $ukh0k); 
        goto TC6L_; 
        y2ODS: 
        if (!(shell_exec("which ifconfig") != '')) { 
            goto pt3lB; 
        } 
        goto fJS1Q; 
        EjHyl: 
        $VOThN[] = "00:00:00:00:00:00"; 
        goto eLOPe; 
        UnozI: 
        goto lzY_l; 
        goto yEUJT; 
        Tpki1: 
        foreach ($cntd1 as $oHeQI) { 
            goto IMh7Q; 
            zYHp9: 
            if (!($pgMPS != '' && $pgMPS != "00:00:00:00:00:00" && $pgMPS != "ff:ff:ff:ff:ff:ff")) { 
                goto MA_LX; 
            } 
            goto faJky; 
            faJky: 
            $VOThN[] = str_replace([""", "-", " "], ['', ":", ''], $pgMPS); 
            goto xanIR; 
            cXkhD: TINQc: 
            goto CfVnc; 
            xanIR: 
            goto WxE7T; 
            goto LWpHK; 
            LWpHK: MA_LX: 
            goto cXkhD; 
            IMh7Q: 
            $pgMPS = trim(@file_get_contents($oHeQI)); 
            goto zYHp9; 
            CfVnc: 
        } 
        goto ztOkk; 
        HyTmR: 
        if (strtoupper(substr(PHP_OS, 0, 3)) === "WIN") { 
            goto xsZJK; 
        } 
        goto iwYw9; 
        b28g3: mOsj1: 
        goto mipuv; 
        yEUJT: x8lgP: 
        goto nPJae; 
        TC6L_: 
        if (!($ukh0k == 0 && is_array($BAv5V))) { 
            goto mOsj1; 
        } 
        goto BY6Wc; 
        YrLC9: JUWQ2: 
        goto b28g3; 
        ztOkk: WxE7T: 
        goto u33kQ; 
        K4rZb: 
        $VOThN = array_unique($VOThN); 
        goto qMca9; 
        Fxp8Z: 
    } ?>

Did this file decode correctly?

Original Code

function getHardwareID() {
        goto ttrAq;
        GcyCG:
        foreach ($BAv5V as $pgMPS) {
            goto JZjGC;
            hDiXd:
            goto wEr3a;
            goto ijNnL;
            yFBAj: Lb0O9:
            goto S89WG;
            JZjGC:
            if (!($pgMPS != '' && $pgMPS != "\60\x30\x3a\x30\x30\x3a\x30\60\72\x30\x30\x3a\x30\60\72\x30\60" && $pgMPS != "\x66\146\x3a\146\x66\x3a\x66\146\72\146\146\x3a\146\146\72\146\146")) {
                goto FTeAg;
            }
            goto lwkrd;
            lwkrd:
            $VOThN[] = str_replace(["\42", "\55", "\x20"], ['', "\x3a", ''], $pgMPS);
            goto hDiXd;
            ijNnL: FTeAg:
            goto yFBAj;
            S89WG:
        }
        goto MBzQ4;
        aRL0Q:
        if (shell_exec("\167\x68\151\x63\x68\40\151\x70") != '') {
            goto x8lgP;
        }
        goto y2ODS;
        yCWrO: iV1G9:
        goto Tpki1;
        ttrAq:
        $VOThN = [];
        goto HyTmR;
        bKrKz:
        exec($W2MBr, $BAv5V, $ukh0k);
        goto Wmn23;
        MBzQ4: wEr3a:
        goto t0MTi;
        Wmn23:
        if (!($ukh0k == 0 && is_array($BAv5V))) {
            goto NZWDf;
        }
        goto GcyCG;
        yKiqV:
        if (is_array($cntd1) && count($cntd1) > 0) {
            goto iV1G9;
        }
        goto aRL0Q;
        wiKcs:
        if (!($ukh0k == 0 && is_array($BAv5V))) {
            goto ydEQ6;
        }
        goto Q_nXQ;
        pEYB0:
        goto REr1l;
        goto pDz8C;
        nPJae:
        $W2MBr = "\151\160\x20\x61\144\x64\162\40\174\40\x67\x72\x65\160\x20\x2d\105\x6f\x20\47\x28\x5b\133\x3a\170\144\151\147\x69\x74\72\x5d\135\173\61\x2c\x32\x7d\x5b\x3a\55\x5d\51\173\65\x7d\x5b\133\x3a\170\144\151\x67\151\164\72\135\x5d\173\61\x2c\62\175\x27";
        goto kDRg4;
        iwYw9:
        $cntd1 = glob("\57\163\171\x73\57\143\154\x61\163\x73\x2f\156\x65\x74\x2f\52\x2f\141\x64\x64\x72\x65\163\x73");
        goto yKiqV;
        l5AHV: lzY_l:
        goto Z9L4G;
        mipuv: REr1l:
        goto OwEAR;
        BY6Wc:
        unset($BAv5V[0]);
        goto MYDTB;
        OwEAR:
        unset($W2MBr, $BAv5V, $ukh0k, $UccC9, $pgMPS, $rjWDu);
        goto Hyn7I;
        YGtcm: mo0Ot:
        goto gSQjg;
        Au1i7:
        $W2MBr = "\x67\x65\x74\x6d\141\143\x20\57\106\117\x20\x63\x73\166";
        goto xNuLG;
        MYDTB:
        foreach ($BAv5V as $pgMPS) {
            goto ESB1A;
            qS72M: wScis:
            goto jlIxj;
            rEp93: VRIZ_:
            goto qS72M;
            NUgcy:
            $VOThN[] = str_replace(["\x22", "\55", "\40"], ['', "\x3a", ''], $rjWDu[0]);
            goto rEp93;
            ESB1A:
            $rjWDu = explode("\54", $pgMPS);
            goto Tn7EF;
            Tn7EF:
            if (!(isset($rjWDu[0]) && $rjWDu[0] != '' && stripos($pgMPS, "\104\x69\163\143\x6f\x6e\x6e\x65\143\x74\x65\x64") === false)) {
                goto VRIZ_;
            }
            goto NUgcy;
            jlIxj:
        }
        goto YrLC9;
        kDRg4:
        exec($W2MBr, $BAv5V, $ukh0k);
        goto wiKcs;
        eLOPe: YcvfS:
        goto K4rZb;
        Z9L4G:
        goto EkBv8;
        goto yCWrO;
        gqzYx:
        return $Eh_Dj;
        goto Fxp8Z;
        u33kQ: EkBv8:
        goto pEYB0;
        pDz8C: xsZJK:
        goto Au1i7;
        Q_nXQ:
        foreach ($BAv5V as $pgMPS) {
            goto wz2HI;
            wz2HI:
            if (!($pgMPS != '' && $pgMPS != "\x30\x30\72\x30\x30\x3a\x30\60\72\60\60\72\x30\60\x3a\60\x30" && $pgMPS != "\x66\x66\72\x66\146\x3a\x66\146\x3a\146\146\x3a\146\x66\72\146\x66")) {
                goto RD9vD;
            }
            goto mBzd7;
            b5ank:
            goto mo0Ot;
            goto kB1s3;
            Qg_Ro: uD2Dl:
            goto m1us9;
            mBzd7:
            $VOThN[] = str_replace(["\42", "\x2d", "\40"], ['', "\x3a", ''], $pgMPS);
            goto b5ank;
            kB1s3: RD9vD:
            goto Qg_Ro;
            m1us9:
        }
        goto YGtcm;
        Hyn7I:
        if (!(count($VOThN) == 0)) {
            goto YcvfS;
        }
        goto EjHyl;
        t0MTi: NZWDf:
        goto dkW3N;
        dkW3N: pt3lB:
        goto UnozI;
        fJS1Q:
        $W2MBr = "\151\146\x63\157\156\x66\x69\147\40\174\x20\x67\x72\145\160\x20\x2d\x45\x6f\x20\x27\50\x5b\133\72\x78\x64\151\147\151\x74\x3a\x5d\x5d\x7b\x31\54\x32\x7d\133\x3a\55\135\x29\173\65\175\133\133\72\170\144\x69\x67\151\x74\x3a\x5d\135\173\x31\x2c\62\x7d\47";
        goto bKrKz;
        qMca9:
        $Eh_Dj = sha1("\x37\61\x32\x64\70\67\x61\144\x33\143\65\60\x39\64\x61\x63\66\142\146\142\65" . $VOThN[0]);
        goto gqzYx;
        gSQjg: ydEQ6:
        goto l5AHV;
        xNuLG:
        exec($W2MBr, $BAv5V, $ukh0k);
        goto TC6L_;
        y2ODS:
        if (!(shell_exec("\x77\150\151\x63\150\40\151\146\143\157\156\x66\x69\147") != '')) {
            goto pt3lB;
        }
        goto fJS1Q;
        EjHyl:
        $VOThN[] = "\60\x30\72\60\x30\72\x30\x30\x3a\60\60\x3a\60\x30\x3a\x30\60";
        goto eLOPe;
        UnozI:
        goto lzY_l;
        goto yEUJT;
        Tpki1:
        foreach ($cntd1 as $oHeQI) {
            goto IMh7Q;
            zYHp9:
            if (!($pgMPS != '' && $pgMPS != "\x30\60\x3a\x30\x30\72\x30\x30\x3a\60\60\72\x30\x30\x3a\60\x30" && $pgMPS != "\146\x66\x3a\146\x66\72\x66\146\x3a\x66\146\72\146\146\x3a\146\x66")) {
                goto MA_LX;
            }
            goto faJky;
            faJky:
            $VOThN[] = str_replace(["\42", "\x2d", "\40"], ['', "\72", ''], $pgMPS);
            goto xanIR;
            cXkhD: TINQc:
            goto CfVnc;
            xanIR:
            goto WxE7T;
            goto LWpHK;
            LWpHK: MA_LX:
            goto cXkhD;
            IMh7Q:
            $pgMPS = trim(@file_get_contents($oHeQI));
            goto zYHp9;
            CfVnc:
        }
        goto ztOkk;
        HyTmR:
        if (strtoupper(substr(PHP_OS, 0, 3)) === "\x57\111\116") {
            goto xsZJK;
        }
        goto iwYw9;
        b28g3: mOsj1:
        goto mipuv;
        yEUJT: x8lgP:
        goto nPJae;
        TC6L_:
        if (!($ukh0k == 0 && is_array($BAv5V))) {
            goto mOsj1;
        }
        goto BY6Wc;
        YrLC9: JUWQ2:
        goto b28g3;
        ztOkk: WxE7T:
        goto u33kQ;
        K4rZb:
        $VOThN = array_unique($VOThN);
        goto qMca9;
        Fxp8Z:
    }

Function Calls

None

Variables

None

Stats

MD5 8aa6a1d771a00357ad6ea789c1b83693
Eval Count 0
Decode Time 57 ms