Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
username-anarchy — 用于渗透测试的用户名工具 | Kitploit
工具/GitHubGitHub/urbanadventurer/username-anarchy
OSINT (开源情报)侦察密码攻击信息收集渗透测试
GitHuburbanadventurer/username-anarchy

username-anarchy

用于渗透测试的用户名工具

查看仓库
1.4k1671年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

License Stable Release Repositories

用户名混乱工具(Username Anarchy)

  • 版本:0.6(2024年9月20日)
  • 作者:urbanadventurer (Andrew Horton)
  • 主页:https://www.morningstarsecurity.com/research/username-anarchy
  • 源码:https://github.com/urbanadventurer/username-anarchy/
  • 许可证:MIT

描述

用于渗透测试时生成用户名的工具。用户名是密码暴力破解问题的一半。

当用户名基于用户姓名时,此工具可用于用户账户/密码暴力破解猜测和用户名枚举。通过在一大组用户账户上尝试少量弱密码,可以避免账户锁定阈值。

用户的姓名可以通过多种方法识别:

  • 从LinkedIn、Facebook及其他社交网络上抓取员工姓名。
  • 从PDF、Word、Excel等文档类型中提取元数据。可使用FOCA工具完成此操作。

还包含来自论坛的常见别名或用户自选用户名。

功能

  • 用于用户名格式的插件架构
  • 格式字符串风格的用户名格式定义
  • 替代功能。例如,当只知道名字首字母和姓氏时(LinkedIn常这样列出用户),它会尝试所有可能的完整名字
  • 来自 Familypedia 和 PublicProfiler 的常见名字和姓氏国家数据库
  • 包含Facebook常见名字和姓氏列表

额外内容

  • 常见论坛用户名,按流行度排序

用法

Username Anarchy 是一个命令行工具。

root@kitploit:~
	 ___ ____                                                        
	|   |    \ ______  ____ _______   ____  _____     __ __    ____  
	|   :    //  ___/_/    \\_  __ \ /    \ \__  \   /  :  \ _/    \
	'   .   / \___ \ \   o_/ |  | \/|   :  \ /  o \ |  . .  \\   o_/ 
	 \_____/ /______) \_____)|__|   |___:  /(______)|__: :  / \_____)
	       _____                         \/       .__     \/      
	      /     \    ____  _____  _______   ____  |  |__  ___.__.   
	     /   o   \  /    \ \__  \ \_  __ \_/ ___\ |  |  \(   :  |   
	    /    .    \|   .  \ /  o \ |  | \/\  \___ |   .  \\___  |   
	    \____:__  /|___:__/(______)|__|    \_____)|___:__//_____|   
	            \/                                                  
	用法:./username-anarchy [选项]... [名字|名 姓|名 中间名 姓]
	作者:Andrew Horton (urbanadventurer)。版本:0.5

	名称:
	 -i, --input-file 文件     输入姓名列表。可以是空格、CSV或TAB分隔。
	                           默认值为名字、姓氏。有效的列标题有:
	                           firstinitial, firstname, lastinitial, lastname,
	                           middleinitial, middlename。
	 -a, --auto                从国家/列表自动生成姓名
	 -c, --country 国家        国家可以是以下数据集之一:
	                           PublicProfiler:
	                           argentina, austria, belgium, canada, china,
	                           denmark, france, germany, hungary, india, ireland,
	                           italy, luxembourg, netherlands, newzealand, norway,
	                           poland, serbia, slovenia, spain, sweden,
	                           switzerland, uk, us
	                           其他:
	                           Facebook - 使用Facebook前10,000个名字
	     --given-names 文件    给定名字字典
	     --family-names 文件   姓氏字典
	 -s, --substitute 状态     控制名称替代
	                           有效值为 'on' 和 'off'。默认:off
	                           可以替代姓名中任何不可用的部分
	 -m, --max-sub 数字        限制每个插件的替代数量。
	                           默认:-1(无限制)

	用户名格式:
	 -l, --list-formats        列出格式插件
	 -f, --select-format 列表  按名称选择格式插件。逗号分隔列表
	 -r, --recognise 用户名    识别用户名使用的格式。
	                           使用Facebook数据集。使用详细模式显示进度。
	 -F, --format 格式         使用格式字符串或ABK格式定义用户格式。详见README.md。

	输出:
	 -@, --suffix 布尔值       后缀。例如 @example.com
	                           默认:无
	 -C 布尔值,                用户名不区分大小写。
	     --case-insensitive    默认:True(全部小写)

	杂项:
	 -v, --verbose             在输出中显示插件格式注释,并在格式识别器中显示姓氏搜索
	 -h, --help

使用示例

你知道用户名但不知道格式

root@kitploit:~
./username-anarchy anna key
anna
annakey
anna.key
annakey
annak
a.key
akey
kanna
k.anna
...

你知道用户名格式和用户名

root@kitploit:~
./username-anarchy --input-file ./test-names.txt  --select-format first.last
andrew.horton
jim.vongrippenvud
peter.otoole

你知道服务器在法国

注意:当你不指定任何输入姓名时,必须使用 -a 或 --auto。

root@kitploit:~
./username-anarchy --country france --auto
martin
bernard
thomas
durand
richard
robert
petit
moreau
dubois
simon
martinsmith
martinjohnson
...

列出用户名格式插件

root@kitploit:~
./username-anarchy --list-formats
插件名称        	示例
--------------------------------------------------------------------------------
first               	anna
firstlast           	annakey
first.last          	anna.key
firstlast[8]        	annakey
firstl              	annak
f.last              	a.key
flast               	akey
lfirst              	kanna
l.first             	k.anna
lastf               	keya
last                	key
last.f              	key.a
last.first          	key.anna
FLast               	AKey
first1              	anna0,anna1,anna2
fl                  	ak
fmlast              	abkey
firstmiddlelast     	annaboomkey
fml                 	abk
FL                  	AK
FirstLast           	AnnaKey
First.Last          	Anna.Key
Last                	Key
FML                 	ABK

自动识别使用的用户名格式

root@kitploit:~
./username-anarchy --recognise j.smith
正在识别 j.smith。这可能需要一点时间。
用户名格式 j.smith 已识别。插件名称:f.last

输入文件

要为多个用户账户生成用户名,你必须在一个文本文件中提供姓名。 文件可以是TAB或CSV分隔。

示例 1

root@kitploit:~
Firstname,Lastname
Andrew,Horton
Jim, von Grippenvud
Peter,O'Toole

示例 2

LinkedIn 常显示名字和姓氏首字母

root@kitploit:~
firstname,lastinitial
andrew,h
foo,b

示例 3

混合姓名集

root@kitploit:~
firstname,firstinitial,middleinitial,lastname,lastinitial
andrew,,,horton,
jim,,,,v
,p,,o'toole,

自定义插件

命令行插件

使用ABK或格式字符串格式定义自定义插件格式。 使用 -F 或 --format 指定用户名格式

示例 1

root@kitploit:~
./username-anarchy -F "v-annakey" andrew horton
v-andrewhorton

示例 2

root@kitploit:~
./username-anarchy -F "v-%f%l" -a -C poland
v-nowaksmith
v-nowakjohnson
v-nowakjones
v-nowakwilliams
v-nowakbrown
v-nowaklee
v-nowakkhan
v-nowaksingh
v-nowakkumar
v-nowakmiller
...

编写插件

你可以通过在 format-plugins.rb 中定义插件来向 username anarchy 添加插件。

此示例使用ABK格式。

root@kitploit:~
Plugin.define "last.first" do
	def generate(n)
		n.format_anna("key.anna")
	end
end

此示例使用格式字符串格式。

root@kitploit:~
Plugin.define "first" do
	def generate(n)
		n.format("%f")
	end
end

格式字符串

Username Anarchy 提供了一种通过格式字符串定义用户名格式的方法。

  • %F - 名字(首字母大写)
  • %M - 中间名(首字母大写)
  • %L - 姓氏(首字母大写)
  • %f - 名字(小写)
  • %m - 中间名(小写)
  • %l - 姓氏(小写)
  • %i.f - 名字首字母(小写)
  • %i.m - 中间名首字母(小写)
  • %i.l - 姓氏首字母(小写)
  • %i.F - 名字首字母(大写)
  • %i.M - 中间名首字母(大写)
  • %i.L - 姓氏首字母(大写)
  • %D - 数字范围 0..9
  • %DD - 数字范围 00..99

ABK 格式

Username Anarchy 提供了一种通过ABK格式定义用户名格式的方法,该格式会转换为格式字符串。

  • Anna - %F
  • Boom - %M
  • Key - %L
  • anna - %f
  • boom - %m
  • key - %l
  • A - %i.F
  • B - %i.M
  • K - %i.L
  • a - %i.f
  • b - %i.m
  • k - %i.l

论坛用户名

forum-names 文件夹包含:

  • common-forum-names.csv - 一个CSV文件,包含论坛用户名及其出现的频率
  • common-forum-names-top10k.txt - 前10,000个论坛用户名
  • common-forum-names.txt - 1,774,313个论坛用户名
  • phpbb-scraper.rb - 用于抓取PHPbb论坛用户名的网络爬虫

姓名资源

名称

  • http://worldnames.publicprofiler.org/SearchArea.aspx 一些常见国家。前10个姓氏和名字
  • https://secure.wikimedia.org/wikipedia/en/wiki/List_of_most_popular_given_names
  • http://www.babynamefacts.com/popularnames/countries.php?country=NZD 每个国家前100个常见婴儿名字
  • https://secure.wikimedia.org/wikipedia/en/wiki/List_of_most_common_surnames_in_Oceania

名称解析:

  • https://secure.wikimedia.org/wikipedia/en/wiki/Capitalization
  • http://cpansearch.perl.org/src/KIMRYAN/Lingua-EN-NameParse-1.28/lib/Lingua/EN/NameParse.pm
  • http://search.cpan.org/~summer/Lingua-EN-NameCase/NameCase.pm
下载工具