obfuscation - converting javascript code to unreadable - Stack Overflow

how can i convert httptoh$#t!t@@^#pi have seen this code which was automatically injected into my site.

how can i convert

http

to

h$#t!t@@^#p

i have seen this code which was automatically injected into my site.......

is there and md5 like php function or their is any other way

how can i convert

http

to

h$#t!t@@^#p

i have seen this code which was automatically injected into my site.......

is there and md5 like php function or their is any other way

Share Improve this question edited Jan 6, 2010 at 18:39 Ateş Göral 140k27 gold badges141 silver badges191 bronze badges asked Jan 6, 2010 at 17:40 Web WormWeb Worm 2,06612 gold badges40 silver badges65 bronze badges 4
  • 2 Please clarify. What are you asking? – Kryten Commented Jan 6, 2010 at 17:46
  • 1 Looking at some of your earlier questions, is your main concern is how could someone maliciously distort your javascript into unreadable code? – Anthony Forloney Commented Jan 6, 2010 at 17:48
  • 3 I'd be rather more concerned about fixing the exploit that let the Russians promise your site! – bobince Commented Jan 6, 2010 at 17:50
  • 1 Yeah, with such wicked language you risk running afoul of the Communication Decency Act (CDA) too. – Carl Smotricz Commented Jan 6, 2010 at 18:00
Add a ment  | 

3 Answers 3

Reset to default 6

It's called obfuscation. You can find a list of tools in many SO questions. For example:

  • How can I obfuscate JavaScript?
  • What is the best javascript obfuscator?
  • Free JavaScript obfuscators?

What you search for is Obfuscation.

This one works with PHP and pretty good:
http://www.phpclasses/browse/package/1863.html

This is what you want.

var txt = "http";
console.log(btoa(txt));  //gives you "aHR0cA=="

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744234433a4564407.html

相关推荐

  • obfuscation - converting javascript code to unreadable - Stack Overflow

    how can i convert httptoh$#t!t@@^#pi have seen this code which was automatically injected into my site.

    8天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信