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 echo "<\x64\x69\x76 \x63lass\x3d\"\x6cogi\x6e-\x76\x69ew-webs\x69\x74e \x74e\x78\x74..

Decoded Output download

<div class="login-view-website text-sm"><a href="../" target="_blank" title="Xem website"><i class="fas fa-reply mr-2"></i>Xem website</a></div>
<div class="login-box">
	<div class="card">
		<div class="card-body login-card-body">
			<p class="login-box-msg">ng nhp h thng</p>
			<form enctype="multipart/form-data">
				<div class="input-group mb-3">
					<div class="input-group-append login-input-group-append">
						<div class="input-group-text">
							<span class="fas fa-user"></span>
						</div>
					</div>
					<input type="text" class="form-control text-sm" name="username" id="username" placeholder="Ti khon *" autocomplete="off">
				</div>
				<div class="input-group mb-3">
					<div class="input-group-append login-input-group-append">
						<div class="input-group-text">
							<span class="fas fa-lock"></span>
						</div>
					</div>
					<input type="password" class="form-control text-sm" name="password" id="password" placeholder="Mt khu *" autocomplete="off">
					<div class="input-group-append">
						<div class="input-group-text show-password">
							<span class="fas fa-eye"></span>
						</div>
					</div>
				</div>
				<button type="button" class="btn btn-sm bg-gradient-danger btn-block btn-login text-sm p-2">
					<div class="sk-chase d-none">
						<div class="sk-chase-dot"></div>
						<div class="sk-chase-dot"></div>
						<div class="sk-chase-dot"></div>
						<div class="sk-chase-dot"></div>
						<div class="sk-chase-dot"></div>
						<div class="sk-chase-dot"></div>
					</div>
					<span>ng nhp</span>
				</button>
				<div class="alert my-alert alert-login d-none text-center text-sm p-2 mb-0 mt-2" role="alert"></div>
			</form>
		</div>
	</div>
</div>
<div class="login-copyright text-sm">Powered by <a href="//nina.vn" target="_blank" title="Thit K Website Nina">Thit K Website Nina</a></div>

<!-- Login js -->
<script type="text/javascript">
	function login()
	{
		var username = \$("#username").val();
		var password = \$("#password").val();

		if(\$(".alert-login").hasClass("alert-danger") || \$(".alert-login").hasClass("alert-success"))
		{
			\$(".alert-login").removeClass("alert-danger alert-success");
			\$(".alert-login").addClass("d-none");
			\$(".alert-login").html("");
		}
		if(\$(".show-password").hasClass("active"))
		{
			\$(".show-password").removeClass("active");
			\$("#password").attr("type","password");
			\$(".show-password").find("span").toggleClass("fas fa-eye fas fa-eye-slash");
		}
		\$(".show-password").addClass("disabled");
		\$(".btn-login .sk-chase").removeClass("d-none");
		\$(".btn-login span").addClass("d-none");
		\$(".btn-login").attr("disabled",true);
		\$("#username").attr("disabled",true);
		\$("#password").attr("disabled",true);

		\$.ajax({
			type: 'POST',
			dataType: 'json',
			url: 'ajax/ajax_login.php',
			async: false,
			data: {username:username,password:password},
			success: function(result)
			{
				if(result.success)
				{
					window.location = "index.php";
				}
				else if(result.error)
				{
					\$(".alert-login").removeClass("d-none");
					\$(".show-password").removeClass("disabled");
					\$(".btn-login .sk-chase").addClass("d-none");
					\$(".btn-login span").removeClass("d-none");
					\$(".btn-login").attr("disabled",false);
					\$("#username").attr("disabled",false);
					\$("#password").attr("disabled",false);
					\$(".alert-login").removeClass("alert-success");
					\$(".alert-login").addClass("alert-danger");
					\$(".alert-login").html(result.error);
				}
			}
		});
	}
	\$(document).ready(function(){
		\$("#username, #password").keypress(function(event){
			if(event.keyCode == 13 || event.which == 13) login();
		})
		\$(".btn-login").click(function(){
			login();
		})
		\$(".show-password").click(function(){
			if(\$("#password").val())
			{
				if(\$(this).hasClass("active"))
				{
					\$(this).removeClass("active");
					\$("#password").attr("type","password");
				}
				else
				{
					\$(this).addClass("active");
					\$("#password").attr("type","text");
				}
				\$(this).find("span").toggleClass("fas fa-eye fas fa-eye-slash");
			}
		})
	})
</script>

Did this file decode correctly?

Original Code

<?php echo "<\x64\x69\x76 \x63lass\x3d\"\x6cogi\x6e-\x76\x69ew-webs\x69\x74e \x74e\x78\x74-\x73\x6d\x22><a hre\x66=\".\x2e/\x22 \x74\x61r\x67\x65\x74=\x22_\x62la\x6e\x6b\" \x74\x69\x74\x6c\x65=\x22Xem \x77\x65\x62\x73i\x74\x65\x22\x3e\x3ci\x20cl\x61ss\x3d\"f\x61\x73\x20\x66\x61-r\x65p\x6cy m\x72-2\"></i>\x58em \x77eb\x73\x69t\x65</\x61\x3e\x3c/\x64iv>\n\x3c\x64iv c\x6c\x61\x73\x73\x3d\"\x6co\x67\x69\x6e-\x62o\x78\x22\x3e\n\t<d\x69\x76 \x63la\x73s=\"\x63\x61\x72\x64\x22\x3e\n\t\t\x3c\x64i\x76\x20\x63\x6c\x61\x73s=\x22ca\x72d-\x62ody \x6co\x67in-card-\x62o\x64y\x22\x3e\n\t\t\t<\x70\x20\x63la\x73s\x3d\x22lo\x67\x69n-\x62o\x78-\x6ds\x67\"\x3e\x6eg\x20\x6eh\x70\x20\x68\x20t\x68\x6e\x67\x3c/\x70\x3e\n\t\t\t\x3c\x66or\x6d e\x6ect\x79\x70\x65\x3d\x22m\x75\x6c\x74\x69p\x61rt/\x66o\x72m-\x64a\x74a\"\x3e\n\t\t\t\t<div\x20\x63\x6ca\x73\x73=\x22i\x6ep\x75\x74-\x67ro\x75\x70\x20\x6db-3\x22\x3e\n\t\t\t\t\t<div\x20clas\x73\x3d\"\x69n\x70\x75\x74-\x67r\x6fu\x70-ap\x70\x65n\x64 \x6co\x67in-\x69\x6e\x70ut-\x67\x72ou\x70-\x61\x70pen\x64\">\n\t\t\t\t\t\t<\x64i\x76\x20c\x6ca\x73s\x3d\"inp\x75t-g\x72\x6fu\x70-\x74e\x78\x74\"\x3e\n\t\t\t\t\t\t\t<s\x70a\x6e\x20\x63l\x61\x73s\x3d\"\x66\x61\x73 f\x61-us\x65r\x22\x3e\x3c/\x73\x70\x61\x6e\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/\x64\x69v>\n\t\t\t\t\t<\x69\x6ep\x75\x74 \x74y\x70\x65\x3d\"t\x65\x78\x74\x22 c\x6ca\x73\x73\x3d\x22for\x6d-\x63\x6fnt\x72\x6fl t\x65x\x74-s\x6d\"\x20na\x6de\x3d\x22\x75s\x65rn\x61\x6d\x65\x22\x20id=\"u\x73\x65r\x6e\x61\x6d\x65\x22 \x70\x6c\x61\x63e\x68olde\x72=\x22Ti \x6bho\x6e\x20*\x22 a\x75\x74\x6fco\x6dplete=\x22o\x66f\"\x3e\n\t\t\t\t</\x64iv>\n\t\t\t\t\x3cd\x69v\x20c\x6c\x61\x73\x73\x3d\x22i\x6ep\x75\x74-g\x72ou\x70\x20mb-3\"\x3e\n\t\t\t\t\t\x3cd\x69\x76\x20\x63\x6c\x61\x73s\x3d\"\x69n\x70\x75\x74-\x67\x72\x6fup-\x61ppend \x6cog\x69\x6e-\x69\x6e\x70\x75\x74-g\x72\x6fu\x70-\x61p\x70\x65n\x64\x22>\n\t\t\t\t\t\t\x3cdiv\x20c\x6cas\x73=\x22i\x6e\x70\x75t-gro\x75p-t\x65xt\">\n\t\t\t\t\t\t\t\x3cs\x70an\x20c\x6cas\x73\x3d\x22\x66\x61\x73\x20fa-l\x6fc\x6b\x22>\x3c/\x73p\x61n\x3e\n\t\t\t\t\t\t\x3c/\x64\x69v\x3e\n\t\t\t\t\t\x3c/\x64\x69\x76\x3e\n\t\t\t\t\t\x3ci\x6ep\x75\x74\x20t\x79\x70e=\x22\x70as\x73w\x6f\x72\x64\x22 \x63lass=\x22\x66orm-co\x6et\x72\x6fl t\x65x\x74-\x73m\"\x20n\x61me=\x22p\x61\x73swor\x64\"\x20id=\"\x70a\x73s\x77ord\x22 \x70\x6c\x61\x63\x65hold\x65\x72\x3d\"\x4dt k\x68\x75\x20*\x22\x20\x61utoco\x6dp\x6ce\x74e\x3d\x22\x6f\x66f\">\n\t\t\t\t\t<\x64i\x76 cla\x73s\x3d\x22in\x70\x75\x74-\x67rou\x70-\x61\x70pend\"\x3e\n\t\t\t\t\t\t\x3c\x64i\x76\x20\x63\x6ca\x73s=\"\x69npu\x74-gro\x75\x70-t\x65xt s\x68\x6fw-\x70\x61\x73sw\x6f\x72\x64\x22\x3e\n\t\t\t\t\t\t\t\x3c\x73pan\x20\x63la\x73\x73=\x22\x66\x61\x73\x20f\x61-eye\"></s\x70a\x6e\x3e\n\t\t\t\t\t\t</\x64iv\x3e\n\t\t\t\t\t</div\x3e\n\t\t\t\t\x3c/\x64\x69v\x3e\n\t\t\t\t<\x62u\x74t\x6f\x6e\x20\x74\x79p\x65\x3d\"b\x75\x74t\x6f\x6e\"\x20\x63lass=\"\x62t\x6e\x20\x62\x74\x6e-\x73m\x20\x62g-\x67ra\x64ie\x6et-d\x61ng\x65\x72 b\x74\x6e-bloc\x6b\x20\x62t\x6e-\x6c\x6fg\x69\x6e te\x78\x74-\x73m p-2\"\x3e\n\t\t\t\t\t<\x64i\x76\x20cl\x61\x73\x73\x3d\x22\x73k-c\x68\x61s\x65\x20\x64-no\x6ee\">\n\t\t\t\t\t\t\x3cd\x69v \x63l\x61s\x73=\"s\x6b-\x63h\x61se-dot\">\x3c/\x64\x69v>\n\t\t\t\t\t\t\x3cd\x69v \x63\x6c\x61s\x73=\"\x73k-\x63\x68\x61se-do\x74\"\x3e</\x64iv>\n\t\t\t\t\t\t\x3cdi\x76\x20cl\x61ss=\x22\x73\x6b-\x63h\x61se-\x64\x6ft\x22\x3e</di\x76>\n\t\t\t\t\t\t\x3cdi\x76\x20\x63l\x61s\x73=\x22sk-\x63h\x61s\x65-\x64ot\"\x3e</\x64i\x76>\n\t\t\t\t\t\t\x3cd\x69\x76 c\x6ca\x73\x73\x3d\"s\x6b-\x63\x68as\x65-\x64o\x74\x22\x3e</div>\n\t\t\t\t\t\t<di\x76\x20\x63l\x61\x73\x73=\"\x73k-chase-\x64\x6f\x74\x22></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<\x73p\x61\x6e>ng \x6e\x68p\x3c/spa\x6e>\n\t\t\t\t</\x62\x75tto\x6e>\n\t\t\t\t\x3cd\x69v \x63\x6c\x61\x73\x73=\"ale\x72\x74\x20\x6d\x79-a\x6c\x65rt a\x6c\x65rt-\x6c\x6fg\x69n\x20d-non\x65 te\x78\x74-\x63en\x74\x65r\x20te\x78\x74-\x73m p-\x32 m\x62-\x30\x20\x6dt-\x32\" r\x6fle=\x22\x61le\x72t\"\x3e</div\x3e\n\t\t\t</f\x6fr\x6d\x3e\n\t\t\x3c/\x64\x69\x76>\n\t\x3c/di\x76\x3e\n</d\x69v>\n\x3cdiv\x20clas\x73=\x22log\x69\x6e-\x63opy\x72ig\x68\x74 \x74\x65x\x74-\x73m\x22>\x50\x6fwere\x64\x20by\x20\x3c\x61\x20\x68r\x65\x66\x3d\x22//\x6e\x69\x6ea.\x76\x6e\x22 ta\x72ge\x74=\x22\x5f\x62\x6ca\x6ek\" tit\x6ce\x3d\"T\x68\x69\x74\x20K\x20\x57\x65bsi\x74\x65 Ni\x6ea\">\x54hit\x20K\x20Websi\x74e\x20\x4e\x69\x6e\x61\x3c/a\x3e</di\x76>\n\n\x3c\x21-- L\x6fgin j\x73 -->\n\x3cscr\x69\x70t \x74y\x70\x65\x3d\"t\x65\x78t/\x6aavascrip\x74\"\x3e\n\tf\x75n\x63\x74\x69o\x6e lo\x67i\x6e()\n\t{\n\t\t\x76ar \x75s\x65\x72\x6e\x61\x6d\x65\x20= \$(\x22#user\x6e\x61me\").\x76a\x6c()\x3b\n\t\t\x76\x61r\x20p\x61\x73sw\x6frd\x20=\x20\$(\x22#\x70\x61s\x73\x77o\x72d\x22)\x2eva\x6c();\n\n\t\tif(\$(\"\x2e\x61\x6c\x65rt-logi\x6e\")\x2eh\x61\x73\x43\x6ca\x73\x73(\x22\x61ler\x74-\x64an\x67er\") || \$(\"\x2eal\x65\x72t-lo\x67\x69n\x22).h\x61\x73Cla\x73\x73(\"\x61ler\x74-\x73\x75\x63\x63\x65\x73\x73\x22))\n\t\t{\n\t\t\t\$(\".ale\x72t-\x6c\x6f\x67in\x22).\x72e\x6dov\x65\x43\x6c\x61ss(\x22\x61\x6c\x65rt-d\x61\x6ege\x72\x20\x61\x6ce\x72\x74-su\x63\x63\x65ss\x22);\n\t\t\t\$(\x22.a\x6cer\x74-\x6c\x6fgi\x6e\x22).addCla\x73s(\"\x64-\x6eon\x65\")\x3b\n\t\t\t\$(\x22.al\x65r\x74-\x6c\x6f\x67in\x22)\x2eh\x74m\x6c(\x22\")\x3b\n\t\t}\n\t\tif(\$(\x22.s\x68\x6fw-p\x61s\x73\x77\x6f\x72\x64\x22)\x2e\x68as\x43\x6c\x61\x73\x73(\x22a\x63t\x69\x76e\"))\n\t\t{\n\t\t\t\$(\x22.s\x68\x6fw-\x70a\x73s\x77o\x72\x64\")\x2er\x65mov\x65Cl\x61\x73\x73(\"act\x69v\x65\");\n\t\t\t\$(\"#\x70\x61\x73sw\x6f\x72\x64\").a\x74\x74r(\"t\x79pe\x22,\"\x70a\x73\x73\x77\x6f\x72d\x22);\n\t\t\t\$(\x22\x2e\x73h\x6fw-passw\x6f\x72\x64\").f\x69\x6e\x64(\x22s\x70\x61n\")\x2e\x74\x6f\x67gl\x65C\x6c\x61\x73\x73(\"\x66\x61\x73 \x66\x61-\x65\x79\x65 \x66a\x73\x20\x66a-eye-\x73l\x61\x73\x68\")\x3b\n\t\t}\n\t\t\$(\x22\x2e\x73\x68\x6fw-pas\x73\x77or\x64\")\x2e\x61d\x64C\x6c\x61\x73\x73(\x22d\x69s\x61\x62\x6c\x65\x64\")\x3b\n\t\t\$(\"\x2e\x62\x74n-\x6c\x6f\x67in .\x73k-c\x68\x61\x73e\x22).\x72\x65\x6doveCla\x73s(\x22d-\x6eon\x65\x22)\x3b\n\t\t\$(\x22.\x62\x74\x6e-\x6c\x6fg\x69n s\x70\x61n\").\x61\x64\x64C\x6c\x61\x73\x73(\"\x64-n\x6fne\");\n\t\t\$(\x22.\x62t\x6e-\x6c\x6fg\x69n\").at\x74r(\x22disa\x62\x6c\x65\x64\x22,tru\x65);\n\t\t\$(\"#\x75s\x65rn\x61\x6d\x65\")\x2e\x61t\x74r(\"\x64\x69sa\x62\x6ced\",\x74r\x75e)\x3b\n\t\t\$(\"#p\x61s\x73word\x22)\x2e\x61ttr(\x22\x64i\x73ab\x6ced\x22,\x74\x72ue)\x3b\n\n\t\t\$.aj\x61\x78({\n\t\t\tty\x70e:\x20'POST',\n\t\t\tda\x74\x61\x54ype: 'j\x73\x6fn\x27,\n\t\t\t\x75\x72\x6c: 'ajax/\x61\x6aa\x78\x5f\x6co\x67\x69\x6e.p\x68\x70',\n\t\t\ta\x73y\x6e\x63:\x20\x66\x61\x6c\x73e,\n\t\t\t\x64a\x74a: {\x75serna\x6de:\x75\x73\x65\x72nam\x65,\x70a\x73\x73\x77o\x72d:pas\x73wo\x72d},\n\t\t\tsuc\x63\x65\x73s:\x20\x66\x75\x6e\x63\x74\x69o\x6e(\x72\x65s\x75\x6ct)\n\t\t\t{\n\t\t\t\t\x69f(\x72\x65s\x75\x6ct\x2es\x75\x63c\x65\x73\x73)\n\t\t\t\t{\n\t\t\t\t\tw\x69n\x64\x6f\x77.\x6co\x63\x61tio\x6e\x20\x3d\x20\x22inde\x78.ph\x70\"\x3b\n\t\t\t\t}\n\t\t\t\tel\x73e if(r\x65\x73\x75l\x74\x2e\x65rro\x72)\n\t\t\t\t{\n\t\t\t\t\t\$(\x22.al\x65\x72\x74-lo\x67in\x22).removeC\x6c\x61\x73s(\x22\x64-n\x6f\x6e\x65\");\n\t\t\t\t\t\$(\x22\x2esho\x77-pa\x73\x73w\x6f\x72d\").r\x65move\x43\x6ca\x73s(\"\x64\x69sabled\");\n\t\t\t\t\t\$(\x22.\x62t\x6e-\x6c\x6fgin\x20\x2esk-c\x68\x61\x73\x65\").\x61\x64\x64Cl\x61ss(\x22d-\x6e\x6fn\x65\x22)\x3b\n\t\t\t\t\t\$(\x22\x2eb\x74n-l\x6f\x67i\x6e \x73\x70\x61\x6e\")\x2eremo\x76e\x43la\x73s(\"\x64-\x6eo\x6e\x65\");\n\t\t\t\t\t\$(\x22.bt\x6e-\x6cog\x69n\").att\x72(\"d\x69s\x61b\x6ced\",\x66alse);\n\t\t\t\t\t\$(\"\x23\x75s\x65\x72\x6e\x61\x6d\x65\")\x2e\x61t\x74r(\"\x64is\x61\x62le\x64\",f\x61\x6c\x73\x65);\n\t\t\t\t\t\$(\x22#pa\x73\x73w\x6f\x72\x64\x22)\x2e\x61\x74\x74\x72(\"dis\x61\x62\x6ced\x22,\x66\x61ls\x65)\x3b\n\t\t\t\t\t\$(\x22.a\x6ce\x72\x74-lo\x67i\x6e\x22)\x2er\x65mov\x65\x43\x6cass(\x22\x61l\x65\x72t-\x73u\x63\x63es\x73\")\x3b\n\t\t\t\t\t\$(\x22.al\x65rt-l\x6f\x67in\x22).\x61d\x64\x43\x6cas\x73(\"a\x6cer\x74-dan\x67e\x72\x22);\n\t\t\t\t\t\$(\".\x61l\x65r\x74-l\x6f\x67in\x22).\x68\x74\x6d\x6c(\x72\x65\x73u\x6ct\x2e\x65\x72\x72o\x72)\x3b\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t\$(d\x6f\x63\x75\x6d\x65nt)\x2e\x72\x65\x61dy(fu\x6e\x63\x74\x69o\x6e(){\n\t\t\$(\"\x23us\x65r\x6ea\x6d\x65, \x23\x70\x61ss\x77\x6f\x72\x64\x22)\x2e\x6bey\x70\x72e\x73s(\x66\x75\x6ectio\x6e(e\x76\x65\x6et){\n\t\t\ti\x66(\x65ve\x6et.\x6bey\x43\x6f\x64e\x20=\x3d\x201\x33\x20||\x20e\x76e\x6et\x2ewhic\x68 \x3d= 13) \x6c\x6f\x67\x69n();\n\t\t})\n\t\t\$(\x22.\x62t\x6e-l\x6fgin\x22).c\x6ci\x63\x6b(fun\x63tio\x6e(){\n\t\t\t\x6co\x67\x69n()\x3b\n\t\t})\n\t\t\$(\x22.show-\x70assw\x6fr\x64\x22).\x63li\x63\x6b(fun\x63ti\x6fn(){\n\t\t\t\x69f(\$(\x22#\x70\x61ss\x77ord\x22).\x76al())\n\t\t\t{\n\t\t\t\tif(\$(\x74his)\x2e\x68a\x73C\x6cass(\"\x61c\x74iv\x65\"))\n\t\t\t\t{\n\t\t\t\t\t\$(t\x68is).rem\x6f\x76\x65\x43\x6ca\x73\x73(\"acti\x76\x65\");\n\t\t\t\t\t\$(\x22\x23\x70assw\x6frd\")\x2e\x61t\x74\x72(\x22t\x79pe\",\"\x70a\x73\x73wo\x72\x64\x22);\n\t\t\t\t}\n\t\t\t\te\x6c\x73\x65\n\t\t\t\t{\n\t\t\t\t\t\$(thi\x73)\x2ea\x64d\x43\x6c\x61\x73\x73(\x22\x61\x63\x74\x69\x76\x65\");\n\t\t\t\t\t\$(\"\x23p\x61ssw\x6f\x72\x64\").attr(\x22\x74\x79p\x65\",\x22t\x65x\x74\")\x3b\n\t\t\t\t}\n\t\t\t\t\$(t\x68\x69s)\x2e\x66i\x6e\x64(\x22sp\x61n\").\x74\x6fg\x67l\x65C\x6cas\x73(\x22f\x61s fa-eye\x20fas\x20\x66a-eye-\x73l\x61\x73\x68\x22);\n\t\t\t}\n\t\t})\n\t})\n\x3c/\x73\x63rip\x74\x3e\n";
?>

Function Calls

None

Variables

None

Stats

MD5 e965bfdbfcaafe34e6b95e265c88040d
Eval Count 0
Decode Time 64 ms