HTML / CSS混淆编译 [英] HTML/CSS Obfuscation Compiling

查看:160
本文介绍了HTML / CSS混淆编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于混淆HTML和CSS文件的最终输出的问题。
让我们留下我在下面的HTML代码中使用在单独的CSSfile中声明的相应类名:

I have a question about obfuscate the final output of an HTML and CSS file. Lets stay I have this HTML code below with the corresponding class names declared in a separate CSSfile:

<div class="header">
  <div class="logo"></div>
  <div class="session-info"></div>
</div> 

<div class="bank-account-content">
  <div class="account-info"></div>
  <div class="account-info"></div>
  <div class="here-is-my-ss-number"></div>
</div> 

有没有办法取得我的HTML / CSS文件并以一种方式处理它在HTML / CSS文件中创建原始类名称/ id并随机生成新文件,以用无意义的类名称/ id替换现有的类名称/ id以隐藏最终输出?例如,上面的输出将被处理并产生如下所示的html,并具有定义了抽象类/ id名称的对应样式表。

Is there a way to take my HTML/CSS file and process it in a way that it will take original class names/ids in a HTML/CSS file and randomly generate new files to replace the existing class names/ids with meaningless class names/ids to obscure the final output? For example, The above output would be processed and result in the html shown below with a corresponding style sheet that has the abstracted class/id names defined.

<div class="1dcx4y">
  <div class="1354fs"></div>
  <div class="f3wecd"></div>
</div> 

<div class="retv5">
  <div class="dgee2f></div>
  <div class="fhg54h"></div>
  <div class="dgd426"></div>
</div> 


推荐答案

尝试 http://www.cssobfuscator.com/

Try http://www.cssobfuscator.com/:


它的作用:

- 它会把你的CSS文件,缩小,编码和Encypting,并最终注入这个不可读的垃圾回到定制的JS库(也是混淆的)。

- 你将得到的结果是这个定制的(唯一的)库,包含混淆的CSS,只需将它包含在原始CSS中。 b $ b 它不会:

- 它不会加速显示您的网页。

- 它不会隐藏检查器中的CSS规则(开发者的工具) - 但它并不介意,攻击者可能不会复制所有东西的规则。

What it does:
- It will take your CSS file, apply minification, encoding and encypting and finally injects this unreadable crap into tailored JS library (also obfuscated).
- The result you will get is this tailored (unique) library, containing obfuscated CSS. Just include it in the place of the original CSS.
What it does not:
- It will not speed up displaying of your web.
- It will not hide CSS rules in inspector (developer's tools) - but it don't mind, attacker will probably not copy all stuff by one rule.

O r http://htmlmuncher.com/


HTML Muncher是一个用Python编写的命令行实用程序,它重写CSS,HTML和JavaScript文件中的类和ids,以节省宝贵的字节并混淆代码。

它如何工作

1.您将CSS,HTML和JavaScript文件列表重写为
2.扫描CSS和JavaScript文件以查找任何类和id引用

3.类和id映射到具有1或2个字母名称(a,b,c ... aa,ab,ac ...)的新类和id <
4.这些文件被新的类和ID名称重写并保存到磁盘上的新位置

HTML Muncher is a command line utility written in Python that rewrites classes and ids in CSS, HTML, and JavaScript files in order to save precious bytes and obfuscate your code.
How it Works
1. You pass in a list of CSS, HTML, and JavaScript files to be rewritten
2. The CSS and JavaScript files are scanned to find any class and id references
3. The classes and ids are mapped to new classes and ids with 1 or 2 letter names (a, b, c ... aa, ab, ac ...)
4. The files are rewritten with the new class and id names and saved to a new location on disk

这篇关于HTML / CSS混淆编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆