偶然研究一下攻击wordpress的工具wpscan根据网上示范的教程,发现坑特别多。
大部分都是老版本的教程,最新版命令有所改动,已经剔除—wordlist改为-P。
需要在官方网站注册生成密钥,本地使用。
另外密码字典需要自己用crunch生成,大部分弱密码都可以爆破。
最新文章
I happened to look into wpscan, the tool for attacking WordPress, following tutorials demonstrated online, and found there are an awful lot of pitfalls.
Most of them are tutorials for old versions; the commands changed in the latest version — —wordlist has been dropped in favor of -P.
You need to register on the official site to generate a key and use it locally.
Also, you have to generate the password dictionary yourself with crunch; most weak passwords can be brute-forced.
今天给一家公司投简历,问我用过openresty没,确实没用过,回答后没结果了。这就查了查。
官方介绍如下:
OpenResty® 是一个基于 Nginx 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库、第三方模块以及大多数的依赖项。用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关。
OpenResty® 通过汇聚各种设计精良的 Nginx 模块(主要由 OpenResty 团队自主开发),从而将 Nginx 有效地变成一个强大的通用 Web 应用平台。这样,Web 开发人员和系统工程师可以使用 Lua 脚本语言调动 Nginx 支持的各种 C 以及 Lua 模块,快速构造出足以胜任 10K 乃至 1000K 以上单机并发连接的高性能 Web 应用系统。
OpenResty® 的目标是让你的Web服务直接跑在 Nginx 服务内部,充分利用 Nginx 的非阻塞 I/O 模型,不仅仅对 HTTP 客户端请求,甚至于对远程后端诸如 MySQL、PostgreSQL、Memcached 以及 Redis 等都进行一致的高性能响应。
Today I sent my resume to a company, and they asked whether I had used openresty. I really had not, so after I answered there was no result. So I looked into it.
The official introduction is as follows:
OpenResty® is a high-performance web platform based on Nginx and Lua, with a large number of fine Lua libraries, third-party modules and most of their dependencies bundled in. It is used to conveniently build dynamic web applications, web services and dynamic gateways that can handle extremely high concurrency and are highly scalable.
OpenResty® brings together various well-designed Nginx modules (mostly developed by the OpenResty team itself), effectively turning Nginx into a powerful general-purpose web application platform. In this way, web developers and system engineers can use the Lua scripting language to invoke the various C and Lua modules supported by Nginx, quickly building high-performance web application systems capable of handling 10K or even over 1000K concurrent connections on a single machine.
OpenResty®'s goal is to let your web service run directly inside the Nginx service, making full use of Nginx's non-blocking I/O model, delivering consistent high-performance responses not only to HTTP client requests but even to remote backends such as MySQL, PostgreSQL, Memcached and Redis.
Based on what I found at the official NoSQL site, here is a brief introduction combined with material from around the web.
Key-value databases
The more widely used ones
Characteristics:
Processes data in memory, so it is relatively the fastest; the data storage structure is the simplest, with only the key-value form; support for querying and aggregating values is very weak; because data is processed in memory, data durability is relatively weak. But redis does have big-data management capabilities; transaction support is weak.
Searching
1.Sequential search
- Idea: start from the first element of the linear list and compare the elements of the list with the element being searched for one by one. If they are equal, the search succeeds and stops; if the whole linear list has been scanned and no element equal to the target has been found, that means the linear list does not contain the element being searched for, and the search fails.
- In the best case, the first element is the one being searched for, so the number of comparisons is 1
- In the worst case, the last element is the one being searched for, or the linear list contains no such element at all; then every element in the list must be compared, and the number of comparisons is n
- On average, about n/2 comparisons are needed
Trees
A tree is not the kind of tree we usually see growing in the soil, but rather a structure in computer languages.
A tree is a simple non-linear structure
- Parent node
- In a tree structure, every node has only one predecessor, which is called that node’s parent node; there is exactly one node with no predecessor, and it is called the root node of the tree, or simply the root of the tree
- Child nodes and leaf nodes
- In a tree structure, every node can have multiple successors, which are called that node’s child nodes. A node with no successors is called a leaf node
- Parent node
Algorithms
Basic characteristics of an algorithm
- Feasibility
- The steps are implementable and the execution result meets expectations
- Determinacy
- The steps are unambiguous
- Finiteness
- It completes in a finite amount of time
- Possessing sufficient intelligence
- Having enough input information and initialization information
- Feasibility
kali用了有一段时间了,谈谈关于使用上的一些事吧。
目前我自己用的就是kali系统,安装在笔记本电脑上,中间也因为升级导致系统崩溃,自己也折腾过好几次。
安装完系统第一件事就是配置软件库
编辑库源指定地址文件(没用leafpad是没安装,用vi或者vim也可以命令操作)
sudo leafpad /etc/apt/sources.list
复制以下库地址
I’ve been using Kali for a while now, so let me talk about a few things regarding its use.
Right now I run Kali myself, installed on a laptop. Along the way upgrades have crashed the system, and I’ve had to mess around with it several times myself.
The first thing to do after installing the system is to configure the software repositories.
Edit the file that specifies the repository source addresses (I didn’t use leafpad because it wasn’t installed; vi or vim works fine for the command too):
sudo leafpad /etc/apt/sources.list
Copy the repository addresses below:
来源:知乎,作者:大狐狸
链接:https://www.zhihu.com/question/36426051/answer/76031743
1.重构是程序员的主力技能。
2.工作日志能提升脑容量。
3.先用profiler调查,才有脸谈优化。
4.注释贵精不贵多。杜绝大姨妈般的“例注”。漫山遍野的碎碎念注释,实际就是背景噪音。
5.普通程序员+google=超级程序员。
Source: Zhihu, author: 大狐狸
Link: https://www.zhihu.com/question/36426051/answer/76031743
- Refactoring is a programmer’s main skill.
- A work log expands your brain capacity.
- Profile first — only then do you have the face to talk about optimization.
- Comments are valued for quality, not quantity. Do away with period-like “routine comments”. Comments carped on all over the place are really just background noise.
- An ordinary programmer + google = a super programmer.
一、缘起
1.1、鸿蒙
在上古时期,天地初开,一群称之为 “运维” 的人们每天在一种叫作 “服务器” 的神秘盒子中创造属于他们的世界;他们在这个世界中每日劳作,一遍又一遍的写入他们的历史,比如搭建一个 nginx、布署一个 java web 应用…
大多数人其实并没有那么聪明,他们所 “创造” 的事实上可能是有人已经创造过的东西,他们可能每天都在做着重复的劳动;久而久之,一些人厌倦了、疲惫了…又过了一段时间,一些功力深厚的老前辈创造了一些批量布署工具来帮助人们做一些重复性的劳动,这些工具被起名为 “Asible”、”Chef”、”Puppet” 等等…
I. The Beginning
1.1. Chaos
In ancient times, when heaven and earth had just been separated, a group of people called “operations” spent every day creating their own world inside a mysterious box called a “server”. In that world they labored daily, writing their history over and over, for example setting up an nginx, deploying a java web application…
Most people aren’t actually that clever. What they “created” may in fact be something someone else had already created, and they probably did the same repetitive work every day. Over time, some grew tired of it, exhausted… After a while longer, some deeply skilled old-timers created batch deployment tools to help people with some of the repetitive labor. These tools were named “Asible”, “Chef”, “Puppet” and so on…
设计模式 一书介绍了很多此类概念。当时,我还在学习面向对象 (OO),因此我发现那本书中有许多概念都很难领会。但是,随着越来越熟悉 OO 概念 —— 尤其是接口和继承的使用 —— 我开始看到设计模式中的实际价值。作为一名应用程序开发人员,即使从不了解任何模式或者如何及何时使用这些模式,对您的职业生涯也没有什么大的影响。但是,我发现了解这些模式以及 developerWorks 文章 “五种常见 PHP 设计模式” 中介绍的那些模式的优秀知识后(请参阅 参考资料),您可以完成两件事情:
启用高带宽会话
如果了解设计模式,您将能够更快地构建可靠的 OO 应用程序。但当整个开发团队知道各种模式时,您可以突然拥有非常高的带宽会话。您不再需要讨论将到处使用的所有类。相反,您可以与其他人谈论模式。“我要在这里引用一个单例(singleton),然后使用迭代器遍历对象集合,然后……” 比遍历构成这些模式的类、方法和接口快很多。单是通信效率一项就值得花时间以团队的形式通过会话来研究模式。
The book Design Patterns introduces a lot of these concepts. At the time I was still learning object orientation (OO), so I found many of the concepts in that book very hard to grasp. But as I became more and more familiar with OO concepts — especially the use of interfaces and inheritance — I began to see the practical value in design patterns. As an application developer, even if you never learn about any pattern, or how and when to use these patterns, it won’t have much of an impact on your career. But I found that after gaining a solid knowledge of these patterns and the ones introduced in the developerWorks article “Five Common PHP Design Patterns” (see Resources), you can accomplish two things:
Enabling high-bandwidth sessions
If you understand design patterns, you’ll be able to build reliable OO applications faster. But when the whole development team knows the various patterns, you suddenly have very high-bandwidth sessions. You no longer need to discuss all the classes that will be used everywhere. Instead, you can talk to the others in terms of patterns. “I’m going to reference a singleton here, then use an iterator to walk the object collection, and then…” is much faster than walking through the classes, methods and interfaces that make up those patterns. The communication efficiency alone makes it worth spending time studying patterns through sessions as a team.