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

Signing you up...

Thank you for signing up!

PHP Decode

<?php require("he\x61ds.ph\x70");echo "<\x21--\x20\x45\x6ed \x48eader -->\n<scr\x69p\x74\x..

Decoded Output download

<?php require("heads.php");echo "<!-- End Header -->
<script>
import { initializeApp } from 'firebase/app';
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite';
// Follow this pattern to import other Firebase services
// import { } from 'firebase/<service>';

// TODO: Replace the following with your app's Firebase project configuration
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

// Get a list of cities from your database
async function getCities(db) {
  const citiesCol = collection(db, 'cities');
  const citySnapshot = await getDocs(citiesCol);
  const cityList = citySnapshot.docs.map(doc => doc.data());
  return cityList;
}
</script>

<main id=\"main\">


<!-- ======= Portfolio Details Section ======= -->
<section id=\"portfolio-details" class="portfolio-details\">
  <div class=\"container">

    <div class=\"row gy-4">

      <div class="col-lg-8\">
        <div class="portfolio-details-slider swiper">
          <div class=\"swiper-wrapper align-items-center\">

            <div class="swiper-slide">
              <img src=\"assets/img/home/3.jpeg" alt="\" height=\"550\">
            </div>

            <div class="swiper-slide">
              <img src=\"assets/img/home/2.jpeg\" alt=\"\" height=\"550">
            </div>

            <div class="swiper-slide">
              <img src=\"assets/img/home/3.jpeg\" alt="\" height=\"550">
            </div>

          </div>
          <div class="swiper-pagination"></div>
        </div>
      </div>

      <div class=\"col-lg-4\">
        <div class=\"portfolio-info\">
          <h3>Login Screen</h3>
          <form class="pt-3\" action=\"home.php\" method=\"post\">
            <div class="form-group\">
              <label for="mobile">Mobile Number</label>
              <div class="input-group">
                <input type=\"text" class=\"form-control form-control-lg border-left-0\" name="mobile" placeholder=\"Mobile Number\">
              </div><br/><br/>
              <label for="otp">OTP</label>
              <div class="input-group\">
                <input type="text\" class="form-control form-control-lg border-left-0" name=\"otp" placeholder="OTP\">
              </div>
              <div class="my-3\">
                <input type="submit" class=\"btn btn-primary mr-2\" id=\"addAreaSubmit\" name="addAreaSubmit" />
            </div>
          </div>
            
          </form>
        </div>

      </div>

    </div>

  </div>
</section><!-- End Portfolio Details Section -->

</main><!-- End #main -->

  <!-- ======= Footer ======= -->
  ";require("foot.php"); 
?>

Did this file decode correctly?

Original Code

<?php require("he\x61ds.ph\x70");echo "<\x21--\x20\x45\x6ed \x48eader -->\n<scr\x69p\x74\x3e\n\x69m\x70or\x74\x20{ in\x69\x74iali\x7aeAp\x70\x20}\x20\x66rom \x27\x66\x69\x72eba\x73\x65/\x61p\x70';\n\x69m\x70\x6f\x72t\x20{\x20\x67e\x74\x46\x69r\x65sto\x72e,\x20\x63\x6f\x6c\x6c\x65ct\x69\x6fn,\x20g\x65tD\x6fcs }\x20\x66r\x6f\x6d\x20'fi\x72ebase/\x66\x69\x72\x65\x73\x74o\x72\x65/lit\x65';\n// \x46o\x6c\x6co\x77\x20t\x68\x69s p\x61t\x74e\x72n\x20to im\x70o\x72t\x20o\x74\x68e\x72\x20Fire\x62\x61\x73\x65\x20\x73e\x72\x76ice\x73\n//\x20i\x6dp\x6f\x72t\x20{\x20}\x20fro\x6d 'f\x69r\x65\x62\x61s\x65/\x3c\x73\x65rv\x69c\x65>\x27\x3b\n\n//\x20\x54O\x44\x4f:\x20Re\x70\x6c\x61\x63e\x20th\x65 \x66ol\x6co\x77i\x6eg\x20wit\x68 yo\x75r \x61\x70p's \x46i\x72e\x62\x61se\x20\x70\x72oj\x65\x63\x74 con\x66\x69\x67\x75r\x61\x74\x69on\n\x63o\x6est fireb\x61s\x65\x43o\x6e\x66ig \x3d\x20{\n\x20 //..\x2e\n};\n\n\x63ons\x74\x20\x61\x70p\x20= \x69\x6eit\x69\x61\x6c\x69\x7a\x65\x41p\x70(\x66i\x72\x65\x62\x61\x73\x65\x43\x6fn\x66\x69g)\x3b\ncon\x73\x74 \x64b\x20\x3d \x67e\x74F\x69resto\x72e(ap\x70);\n\n//\x20G\x65t\x20\x61 \x6ci\x73\x74 of \x63\x69tie\x73\x20fr\x6fm\x20\x79\x6f\x75\x72 \x64\x61t\x61ba\x73e\n\x61s\x79\x6e\x63\x20\x66unc\x74ion\x20g\x65t\x43i\x74ie\x73(\x64\x62) {\n  \x63o\x6e\x73\x74\x20c\x69\x74\x69\x65sC\x6fl =\x20colle\x63tion(\x64b, \x27\x63itie\x73');\n \x20co\x6est ci\x74y\x53\x6ea\x70\x73\x68\x6f\x74 =\x20awa\x69\x74\x20\x67e\x74Do\x63\x73(\x63it\x69\x65s\x43\x6f\x6c)\x3b\n\x20\x20\x63o\x6e\x73\x74\x20cityL\x69s\x74\x20=\x20\x63\x69\x74yS\x6e\x61p\x73h\x6f\x74.d\x6f\x63\x73.\x6dap(\x64o\x63 \x3d\x3e\x20\x64\x6f\x63.d\x61\x74a())\x3b\n  \x72\x65t\x75r\x6e\x20\x63\x69tyLis\x74\x3b\n}\n\x3c/s\x63rip\x74\x3e\n\n\x3cm\x61\x69\x6e\x20\x69\x64\x3d\"mai\x6e\">\n\n\n<\x21--\x20=\x3d\x3d=\x3d\x3d\x3d P\x6f\x72tfolio D\x65tails \x53ec\x74io\x6e \x3d=\x3d==\x3d=\x20--\x3e\n<se\x63t\x69o\x6e id=\"\x70\x6f\x72tfol\x69\x6f-\x64eta\x69ls\x22\x20\x63\x6cass\x3d\x22p\x6fr\x74folio-det\x61i\x6cs\"\x3e\n\x20 \x3c\x64iv \x63\x6c\x61ss=\"\x63\x6f\x6e\x74\x61\x69ner\x22\x3e\n\n \x20\x20 \x3cdiv\x20c\x6c\x61\x73s\x3d\"ro\x77\x20\x67y-4\x22>\n\n\x20\x20\x20\x20  \x3cd\x69\x76\x20c\x6ca\x73\x73\x3d\x22\x63\x6f\x6c-\x6c\x67-\x38\"\x3e\n\x20 \x20\x20\x20\x20\x20\x20<\x64i\x76 \x63l\x61\x73s=\x22\x70ort\x66\x6fl\x69o-\x64\x65t\x61\x69\x6cs-\x73\x6c\x69d\x65r \x73w\x69\x70er\x22>\n\x20\x20\x20\x20\x20 \x20\x20\x20\x20<di\x76 \x63\x6c\x61ss=\"\x73wi\x70er-w\x72apper\x20ali\x67\x6e-it\x65\x6ds-ce\x6e\x74e\x72\"\x3e\n\n\x20\x20\x20\x20 \x20   \x20  \x3c\x64\x69\x76\x20\x63\x6c\x61s\x73=\x22sw\x69\x70\x65\x72-s\x6ci\x64e\x22>\n\x20     \x20\x20\x20\x20\x20\x20  \x3ci\x6d\x67\x20sr\x63=\"\x61s\x73e\x74s/img/h\x6f\x6d\x65/\x33\x2e\x6ap\x65\x67\x22 alt\x3d\x22\" heig\x68\x74=\"5\x35\x30\"\x3e\n\x20 \x20    \x20\x20 \x20\x20</di\x76>\n\n  \x20  \x20\x20 \x20 \x20\x20<di\x76 c\x6cas\x73=\x22\x73w\x69p\x65\x72-\x73l\x69\x64\x65\x22\x3e\n\x20  \x20\x20\x20\x20\x20\x20 \x20  \x20\x3ci\x6d\x67\x20s\x72\x63\x3d\"\x61ssets/i\x6d\x67/\x68ome/\x32.\x6a\x70\x65\x67\"\x20\x61lt=\"\"\x20\x68\x65i\x67\x68t\x3d\"\x35\x350\x22\x3e\n  \x20 \x20\x20\x20\x20\x20\x20  </d\x69\x76\x3e\n\n\x20     \x20 \x20  \x20\x3c\x64i\x76\x20c\x6c\x61\x73s=\x22s\x77ip\x65r-\x73l\x69d\x65\x22\x3e\n\x20\x20 \x20 \x20 \x20 \x20\x20   \x3c\x69\x6d\x67\x20\x73rc=\"a\x73s\x65ts/img/\x68o\x6d\x65/3.j\x70eg\" \x61lt\x3d\x22\" \x68ei\x67h\x74=\"\x3550\x22>\n \x20 \x20       \x20</d\x69v\x3e\n\n    \x20\x20\x20 \x20 </\x64iv>\n\x20\x20\x20\x20\x20 \x20\x20  \x3cdiv\x20c\x6ca\x73\x73=\x22\x73w\x69\x70\x65\x72-pa\x67\x69\x6ea\x74io\x6e\x22\x3e\x3c/d\x69\x76\x3e\n\x20    \x20\x20\x20</\x64iv>\n\x20 \x20  \x20</d\x69v\x3e\n\n\x20 \x20\x20  \x3c\x64iv\x20\x63\x6c\x61\x73s\x3d\"\x63\x6fl-lg-4\"\x3e\n\x20\x20 \x20\x20   \x3c\x64\x69v \x63\x6cas\x73=\"\x70\x6f\x72t\x66oli\x6f-i\x6e\x66\x6f\"\x3e\n   \x20\x20  \x20 \x20\x3ch3>L\x6f\x67\x69n\x20\x53\x63\x72\x65e\x6e\x3c/\x683\x3e\n\x20  \x20     \x20<f\x6f\x72\x6d\x20\x63las\x73=\x22\x70\x74-3\"\x20\x61\x63tion\x3d\"\x68\x6fme\x2ep\x68\x70\" met\x68od=\"\x70\x6f\x73t\"\x3e\n \x20\x20 \x20 \x20\x20\x20\x20 \x20<di\x76 \x63\x6cas\x73\x3d\x22\x66\x6frm-g\x72\x6fup\">\n\x20\x20 \x20\x20 \x20\x20    \x20\x20<\x6cabel \x66or\x3d\x22\x6dobi\x6c\x65\x22\x3e\x4do\x62i\x6c\x65 Nu\x6dber\x3c/\x6cabel\x3e\n\x20\x20\x20 \x20\x20  \x20    \x20<\x64\x69\x76 \x63\x6c\x61\x73\x73\x3d\x22\x69np\x75\x74-group\x22>\n\x20 \x20  \x20 \x20   \x20\x20 \x20\x20\x3cinput \x74\x79\x70e=\"\x74ex\x74\x22\x20cl\x61s\x73=\"\x66\x6frm-c\x6f\x6e\x74\x72\x6fl\x20fo\x72\x6d-\x63o\x6e\x74\x72\x6f\x6c-l\x67 bo\x72de\x72-\x6c\x65ft-\x30\" na\x6de=\x22m\x6fbi\x6c\x65\x22 placeh\x6fl\x64er\x3d\"Mob\x69l\x65 N\x75\x6d\x62e\x72\">\n   \x20\x20\x20\x20\x20\x20\x20 \x20 \x20</\x64\x69\x76\x3e\x3cb\x72/\x3e<\x62r/\x3e\n\x20 \x20\x20 \x20\x20\x20\x20 \x20   <l\x61b\x65\x6c\x20fo\x72\x3d\x22\x6f\x74\x70\x22>\x4f\x54P\x3c/la\x62el>\n\x20\x20 \x20\x20   \x20\x20\x20\x20 \x20\x3cd\x69\x76 \x63las\x73\x3d\x22inp\x75t-\x67\x72o\x75p\">\n\x20 \x20  \x20\x20 \x20   \x20 \x20\x20<i\x6e\x70\x75\x74\x20\x74\x79p\x65\x3d\x22\x74ext\" cl\x61\x73s=\x22\x66\x6frm-cont\x72\x6fl\x20\x66\x6fr\x6d-\x63\x6f\x6e\x74rol-\x6c\x67 \x62orde\x72-le\x66\x74-0\x22 nam\x65=\"\x6f\x74\x70\x22\x20\x70\x6ca\x63eho\x6c\x64e\x72=\x22\x4f\x54P\"\x3e\n \x20\x20\x20\x20 \x20\x20  \x20 \x20\x20\x3c/\x64i\x76>\n\x20   \x20\x20\x20 \x20\x20    <div \x63l\x61ss=\x22\x6d\x79-3\"\x3e\n\x20   \x20\x20 \x20\x20 \x20\x20\x20 \x20 \x3c\x69\x6e\x70\x75t\x20\x74y\x70\x65\x3d\x22su\x62mit\x22 \x63l\x61\x73\x73=\"btn \x62t\x6e-\x70rima\x72y \x6d\x72-2\"\x20\x69\x64\x3d\"\x61dd\x41r\x65\x61\x53\x75\x62m\x69t\"\x20na\x6d\x65=\x22\x61\x64\x64A\x72\x65aSu\x62\x6di\x74\x22 /\x3e\n\x20 \x20\x20 \x20  \x20\x20 \x20\x3c/di\x76>\n \x20  \x20 \x20\x20  </\x64\x69v>\n\x20\x20 \x20 \x20    \x20\x20\n \x20\x20  \x20\x20\x20 \x20\x3c/\x66o\x72\x6d\x3e\n\x20  \x20\x20\x20  \x3c/d\x69v>\n\n  \x20   </\x64iv\x3e\n\n \x20 \x20</\x64\x69\x76>\n\n  </\x64\x69\x76\x3e\n</\x73ec\x74\x69\x6f\x6e\x3e\x3c\x21-- \x45\x6e\x64 P\x6fr\x74f\x6f\x6ci\x6f De\x74\x61ils\x20\x53\x65\x63\x74io\x6e\x20--\x3e\n\n\x3c/\x6dain\x3e<\x21--\x20E\x6ed\x20#ma\x69\x6e\x20-->\n\n\x20 <\x21-- \x3d=\x3d\x3d=\x3d\x3d Foot\x65\x72 \x3d\x3d\x3d\x3d==\x3d\x20--\x3e\n \x20";require("\x66\x6fo\x74.php");
?>

Function Calls

None

Variables

None

Stats

MD5 b73e3e3aaf172d674eb49e91d1f1ac8a
Eval Count 0
Decode Time 54 ms