ThaiSEOBoard.com

พัฒนาเว็บไซต์ => CMS & Free Script => ข้อความที่เริ่มโดย: iton ที่ 16 กุมภาพันธ์ 2013, 21:14:47



หัวข้อ: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: iton ที่ 16 กุมภาพันธ์ 2013, 21:14:47
เข้ารหัสมาแบบนี้เราจะถอดยังไงคับ มีท่าไหนพอทราบไหมคับ

โค๊ด:
<script type='text/javascript'>document.write('\u003c\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003d\u0027\u0074\u0065\u0078\u0074\u002f\u006a\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0027\u0020\u0073\u0072\u0063\u003d\u0027\u0068\u0074\u0074\u0070\u0073\u003a\u002f\u002f\u0078\u0065\u006d\u0070\u0068\u0069\u006d\u0031\u0038\u0068\u006f\u0074\u0063\u006f\u006d\u002e\u0067\u006f\u006f\u0067\u006c\u0065\u0063\u006f\u0064\u0065\u002e\u0063\u006f\u006d\u002f\u0073\u0076\u006e\u002f\u0078\u0065\u006d\u0070\u0068\u0069\u006d\u002f\u0062\u006f\u0078\u0074\u0068\u0075\u006d\u002e\u006a\u0073\u0027\u003e\u003c\u002f\u0073\u0063\u0072\u0069\u0070\u0074\u003e')</script>


 :wanwan017:


หัวข้อ: Re: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: Maxio ที่ 16 กุมภาพันธ์ 2013, 21:36:53
โค๊ด:
<script type='text/javascript' src='https://xemphim18hotcom.googlecode.com/svn/xemphim/boxthum.js'></script>

มันคือ unicode ครับ


หัวข้อ: Re: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: iton ที่ 16 กุมภาพันธ์ 2013, 21:44:23
โค๊ด:
<script type='text/javascript' src='[url]https://xemphim18hotcom.googlecode.com/svn/xemphim/boxthum.js'>[/url]</script>

มันคือ unicode ครับ



ใช่โปรแกรม อะไรคับ  :wanwan013:


หัวข้อ: Re: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: Maxio ที่ 16 กุมภาพันธ์ 2013, 21:45:24
ถ้าจะถอดรหัสก็ง่ายๆครับ ใช้ฟังค์ชั่น encodeURIComponent และ decodeURIComponent ใน javascript เอาครับ

ประมาณนี้ครับ
โค๊ด:
        <script type="text/javascript">
          var text = "u003cu0073u0063u0072u0069u0070u0074u0020u0074u0079u0070u0065u003du0027u0074u0065u0078u0074u002fu006au0061u0076u0061u0073u0063u0072u0069u0070u0074u0027u0020u0073u0072u0063u003du0027u0068u0074u0074u0070u0073u003au002fu002fu0078u0065u006du0070u0068u0069u006du0031u0038u0068u006fu0074u0063u006fu006du002eu0067u006fu006fu0067u006cu0065u0063u006fu0064u0065u002eu0063u006fu006du002fu0073u0076u006eu002fu0078u0065u006du0070u0068u0069u006du002fu0062u006fu0078u0074u0068u0075u006du002eu006au0073u0027u003eu003cu002fu0073u0063u0072u0069u0070u0074u003e";

          var encode = encodeURIComponent(text);
          var result = decodeURIComponent(encode);
          alert(result);
        </script>

//backslash หายครับ  :wanwan031:



หัวข้อ: Re: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: oDarkIceo ที่ 16 กุมภาพันธ์ 2013, 21:50:06
ถ้าจะถอดรหัสก็ง่ายๆครับ ใช้ฟังค์ชั่น encodeURIComponent และ decodeURIComponent ใน javascript เอาครับ

ประมาณนี้ครับ
โค๊ด:
        <script type="text/javascript">
          var text = "u003cu0073u0063u0072u0069u0070u0074u0020u0074u0079u0070u0065u003du0027u0074u0065u0078u0074u002fu006au0061u0076u0061u0073u0063u0072u0069u0070u0074u0027u0020u0073u0072u0063u003du0027u0068u0074u0074u0070u0073u003au002fu002fu0078u0065u006du0070u0068u0069u006du0031u0038u0068u006fu0074u0063u006fu006du002eu0067u006fu006fu0067u006cu0065u0063u006fu0064u0065u002eu0063u006fu006du002fu0073u0076u006eu002fu0078u0065u006du0070u0068u0069u006du002fu0062u006fu0078u0074u0068u0075u006du002eu006au0073u0027u003eu003cu002fu0073u0063u0072u0069u0070u0074u003e";

          var encode = encodeURIComponent(text);
          var result = decodeURIComponent(encode);
          alert(result);
        </script>

กระทู้นี้มีความรู้  :wanwan011:


หัวข้อ: Re: {{{สอบถาม}}}}การถอดรหัส javascript
เริ่มหัวข้อโดย: iton ที่ 16 กุมภาพันธ์ 2013, 21:52:31
ขอบคุณทุกท่านที่ช่วยเหลือคับผม  :wanwan017: