给定md5哈希时如何查找特定文件(How to find specific file when given md5 Hash)
我们的服务器已被标记为僵尸网络的一部分,我们已经获得了所谓的坏文件的md5哈希值。
我读过的所有例子和建议都不符合我的要求。 我正在寻找的是如何根据我们给出的md5哈希找到这个特定的文件。
我是否需要为计算机上的每个文件生成md5哈希值然后进行比较,或者是否有更简单的方法来搜索它? 如果没有,我该怎么做呢?
Our server has been flagged as being part of a botnet, and we've been given the md5 hash values of the supposedly bad files.
All the examples and suggestions I've read don't quite match what I need. All I'm looking for is how to find this specific file based on the md5 hash we've been given.
Do I need to generate an md5 hash for each file on the computer and then compare it, or is there some easier way to search for this? If not, how would I go about this?
原文:https://stackoverflow.com/questions/31209647
满意答案
所以你想要做的就是将输入的电子邮件地址转换为小写。 您可以通过继承auth公司并为该字段添加一个干净的方法来完成此操作:
class EmailAuthForm(AuthenticationForm): def clean_username(self): return self.cleaned_data["username"].lower()
现在通过urls.py在视图中使用它。
url(r'^login/$', auth_views.LoginView.as_view(authentication_form=EmailAuthForm), name="login")
So it seems that all you want to do is convert the entered email address to lower case. You can do this by subclassing the auth firm and adding a clean method for the field:
class EmailAuthForm(AuthenticationForm): def clean_username(self): return self.cleaned_data["username"].lower()
And now use this in the view via urls.py.
url(r'^login/$', auth_views.LoginView.as_view(authentication_form=EmailAuthForm), name="login")
相关问答
更多用ACCOUNT_FORMS覆盖Django allauth登录表单(Overriding Django allauth login form with ACCOUNT_FORMS)
Django AJAX登录表单验证(Django AJAX login form validation)
在每个页面上放置一个django登录表单(Putting a django login form on every page)
为自定义Django用户创建登录页面?(Creating a login page for custom Django users?)
如何使用django登录表单(how to put a login form using django)
如何在Django的整个站点上提供登录表单(How to make the login form available on whole site on Django)
使用formwizard-django创建用户后登录(Login after creating a user with formwizard-django)
创建我自己的登录表单django(creating my own login form django)
无法在Django中创建登录表单(Trouble creating login form in Django)
Django登录部分(Django login part)
相关文章
更多收藏的几个国内国外MD5在线解密网站
移动MM failed to find resource file{mmiap.xml}
Redis 哈希(Hash)详解
could not find system property or JNDI
把一个对象数组映射成hash?
用‘button’跟‘text’组合代替‘file’,选择文件后点‘submit’,‘file’的值被清空
Java 流(Stream)、文件(File)和IO
xxx is not in the sudoers file解决方法
PHP 中dirname(_file_)
【HDFS】HADOOP DISTRIBUTED FILE SYSTEM
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!