text
stringlengths
100
9.93M
category
stringclasses
11 values
# 日志管理 --- ## Log4j2 在 pom.xml 中引入 Log4j2 的 Starter 依赖 spring-boot-starter-log4j2 ,同时排除默认引入的 spring-boot-starter-logging,比如下面这样: ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springfr...
sec-knowleage
# T1555-005-win-cmdkey获取凭据(白名单) ## 来自ATT&CK的描述 攻击者可能从第三方密码管理器中获取用户凭证。密码管理器是存储用户凭证的应用程序,通常是在一个加密的数据库中。在用户提供主密码解锁数据库后,通常可以获得凭证。数据库被解锁后,这些凭证可以被复制到内存中。这些数据库可以以文件形式存储在磁盘上。 攻击者可以通过从内存中提取主密码或纯文本凭证,从密码管理器中获取用户凭证。攻击者可以通过密码猜解获得主密码从内存提取凭证。 ## 测试案例 Windows系统上获取缓存明文凭证方法的过程中,发现了一个非常有趣的工具:cmdkey.exe。Cmdkey是一个内置的Windows工具,可以用来缓存在特定目标机...
sec-knowleage
# Investigative Reversing 4 Forensics, 400 points ## Description: > We have recovered a binary and 5 images: image01, image02, image03, image04, image05. See what you can make of it. There should be a flag somewhere. ## Solution: This is the follow-up for [Investigative Reversing 3](Investigative_Reversing_3.md). Agai...
sec-knowleage
# Electron Remote Code Execution Vulnerability(CVE-2018-1000006) [中文版本(Chinese version)](README.zh-cn.md) Electron is an open source library developed by GitHub for building cross-platform desktop applications with HTML, CSS, and JavaScript. Electron accomplishes this by combining Chromium and Node.js into a single r...
sec-knowleage
# Active Directory Attacks ## Summary - [Active Directory Attacks](#active-directory-attacks) - [Summary](#summary) - [Tools](#tools) - [Kerberos Clock Synchronization](#kerberos-clock-synchronization) - [Active Directory Recon](#active-directory-recon) - [Using BloodHound](#using-bloodhound) - [Using P...
sec-knowleage
.\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>. .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual...
sec-knowleage
# kid vm (pwn 188p, 22 solved) > Writing a vm is the best way to teach kids to learn vm escape. ## Analysis ### Wrap-around vulnerability in the guest memory allocator When allocating guest memory, the subroutine 006F fails to check if the new request fits into available free space. The only check implemented is 008F, ...
sec-knowleage
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
sec-knowleage
# Episode 4: Challenge 2 ## Description > You are the researcher. Follow the hints, find a vulnerability in the platform. > > Hint: Try logging in as tin The source code for the VRP website was attached. <details> <summary>Click to expand</summary> The following sources are needed to solve the challenge. The sourc...
sec-knowleage
# Kibana 未授权访问漏洞 ## 漏洞描述 Kibana 未授权访问漏洞是指在 Kibana 未正确配置认证和授权的情况下,未经身份验证的用户可以访问 Kibana 的仪表板、数据及其他敏感信息。这种漏洞可能会导致数据泄露、攻击者控制 Kibana 环境以及其他安全威胁。 ## 环境搭建 安装elasticsearch ``` cd /opt wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.3.tar.gz tar -zxvf elasticsearch-6.5.3.tar.gz cd elasticsearch-6.5.3...
sec-knowleage
# Joomla improper access check in webservice endpoints (CVE-2023-23752) [中文版本(Chinese version)](README.zh-cn.md) Joomla is a free and open-source content management system (CMS) that allows users to build websites and online applications. It was first released in 2005 and has since become one of the most popular CMS ...
sec-knowleage
# 十八、内存 > 作者:Peter Yaworski > 译者:[飞龙](https://github.com/) > 协议:[CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/) ## 描述 缓冲区溢出是一个场景,其中程序向缓冲区或内容区域写入数据,写入的数据比实际分配的区域要多。使用冰格来考虑的话,你可能拥有 12 个空间,但是只想要创建 10 个。在填充格子的时候,你添加了过多的水,填充了 11 个位置而不是 10 个。你就溢出了冰格的缓存区。 缓冲区溢出在最好情况下,会导致古怪的程序行为,最坏情况下,会产生严重的安全漏洞。这里的原因是,使用缓...
sec-knowleage
--- title: TablePlus date: 2022-11-23 16:23:31.706905 background: bg-[#ecc550] label: tags: - - categories: - Keyboard Shortcuts intro: | A visual cheat-sheet for the 34 keyboard shortcuts found in TablePlus --- Keyboard Shortcuts ------------------ ### Global Shortcut | Action ---|--- `Ctrl` `N` |...
sec-knowleage
# 云原生漏洞学习笔记 > 主要学习:《红蓝对抗中的云原生漏洞挖掘及利用实录》[1] // TODO ## References [1] 红蓝对抗中的云原生漏洞挖掘及利用实录,neargle、pk,https://mp.weixin.qq.com/s/Aq8RrH34PTkmF8lKzdY38g
sec-knowleage
# spelling-quiz Crypto, 100 points ## Description > I found the flag, but my brother wrote a program to encrypt all his text files. He has a spelling quiz study guide too, but I don't know if that helps. Three files were attached. `encrypt.py`: ```python import random import os files = [ os.path.join(path, file) ...
sec-knowleage
# Micro-CMS v1 - FLAG2 ## 0x00 Index ![](../flag0/imgs/index.jpg) ## 0x01 Page 1 ![](../flag0/imgs/1.jpg) ## 0x02 Edit Page 1 ```html <script>alert`xss`</script> ``` ![](./imgs/edit.jpg) Save and nothing happened. ![](./imgs/edited.jpg) ## 0x03 FLAG Go back to home and get the FLAG ![](./imgs/flag.jpg)
sec-knowleage
'\" '\" Copyright (c) 1991-1993 The Regents of the University of California. '\" Copyright (c) 1994-1996 Sun Microsystems, Inc. '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" '\" RCS: @(#) $Id: library.n,v 1.2 2003/11/24 05...
sec-knowleage
.\" -*- nroff -*- .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "SMB.CONF" 5 "" "" "" .SH NAME smb.conf \- Samba组件的配置文件 .SH "总览 SYNOPSIS" .PP \fIs...
sec-knowleage
# DB Secret Web ## Description: > To enable secure microservices (or whatever, we don't know yet) over Wee in the future, we created a specific DB_SECRET, only known to us. This token is super important and extremely secret, hence the name. The only way an attacker could get hold of it is to serve good booze to the adm...
sec-knowleage
# CBPM (web 300) ###ENG [PL](#pl-version) We get access to cloud-based password storage. It stores encrypted passwords on the webpage, but the decryption key is present only on the client. It is true - we check the local storage and there is a `KEY` entry: ![](local_storage.png) We also notice that there is a cookie `L...
sec-knowleage
# RrEeGgEeXx (re 75) ###ENG [PL](#pl-version) In the task we got a [binary](RegexAuth.exe) written in C#. Again as with the F# binary in RE50, we can simply decompile the code with ILSpy. Most of it is not important - the only important bit is flag verification: ```csharp Program.check_regex("^.{40}$", input) && Progr...
sec-knowleage
version: '2' services: coldfusion: image: vulhub/coldfusion:8.0.1 ports: - "8500:8500"
sec-knowleage
from django.db import models from django.contrib.postgres.fields import JSONField class Collection(models.Model): name = models.CharField(max_length=128) detail = JSONField() def __str__(self): return self.name
sec-knowleage
.\" This man page is Copyright (C) 1998 Heiner Eisen. .\" Permission is granted to distribute possibly modified copies .\" of this page provided the header is included verbatim, .\" and in case of nontrivial modification author and date .\" of the modification is added to the header. .TH X25 7 "1 Dec 1998" "Linux Man ...
sec-knowleage
# DirBuster软件包描述 DirBuster是一个用来在web/应用服务器上爆破目录与文件的多线程Java应用程序。通常情况下,某些web服务器看上去是处于默认设置的状态,然而实际上有一些页面和应用是被隐藏于其中的。DirBuster的作用就是尝试去发现这些隐藏的内容。然而,这种性质的爆破工具经常受制于目录与文件的字典大小。因此,DirBuster提出了一种新的方法来尝试解决这个问题:可以从网上抓取下来的目录与文件信息(其实际上被开发者所使用)从头生成字典!DirBuster自带了整整9个不同的字典文件,使得其在寻找隐藏的目录和文件上有着很棒的效率。如果这样还不能满足你,那么DirBuster还提供了纯爆破(pure bru...
sec-knowleage
# digitalworld.local: TORMENT > https://download.vulnhub.com/digitalworld/TORMENT.7z 靶场IP:`192.168.32.199` 扫描对外服务 ``` ┌──(root💀kali)-[~/Desktop] └─# nmap -p 1-65535 -sV 192.168.32.199 Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-04 21:59 EDT Nmap scan report for 192.168.32.199 Host is up (0.00048s latency). Not...
sec-knowleage
# Zabbix未授权访问漏洞 ## 漏洞描述 Zabbix存在一个未授权访问漏洞,通过该漏洞,攻击者可以在未经授权的情况下访问Zabbix服务器上的数据,导致敏感信息泄露。 ## **影响版本** Zabbix <= 4.4 ## 环境搭建 ``` docker run -p 10051:10051 -p 80:80 zabbix/zabbix-appliance:ubuntu-4.0.12 ``` ## 漏洞利用 访问:http://192.168.32.183/zabbix.php?action=problem.view&ddreset=1 ![image-20220726150813375](../../.gitbook/...
sec-knowleage
# Shiro --- ## 免责声明 `本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.` --- > 官网 : https://shiro.apache.org/ **简介** Apache Shiro 是一个功能强大且灵活的开源安全框架,主要功能包括用户认证、授权、会话管理以及加密. shiro 的漏洞参考 https://issues.apache.org/jira/projects/SHIRO/issues **相关文章** - [Apache Shiro回显poc改造计划](https://mp.weixin.qq.com/s/-ODg9xL838wro2S_NK30b...
sec-knowleage
lpq === 显示打印队列中的打印任务的状态信息 ## 补充说明 **lpq命令** 用于显示打印队列中的打印任务的状态信息。 ### 语法 ```shell lpq(选项) ``` ### 选项 ```shell -E:强制使用加密方式与服务器连接; -P:显示中的打印机上的打印队列状态;; -U:自动可选的用户名; -a:报告所有打印机的定义任务; -h:指定打印服务器信息; -l:使用长格式输出; +:指定显示状态的间隔时间。 ```
sec-knowleage
version: '2' services: web: image: vulhub/spring-with-h2database:1.4.200 ports: - "8080:8080"
sec-knowleage
# Introduction 这里主要有 - 默认:用户态不可直接访问内核态的数据、执行内核态的代码 - SMEP:内核态不可执行用户态的代码 - SMAP:内核态不可访问用户态的数据 - KPTI:用户态不可看到内核态的页表;内核态不可执行用户态的代码(模拟)
sec-knowleage
popd === 从目录堆栈中删除目录。 ## 概要 ```shell popd [-n] [+N | -N] ``` ## 主要用途 - 从目录堆栈中删除目录,如果是顶部目录被删除,那么当前工作目录会切换到新的顶部目录。 - 没有参数时,删除目录堆栈顶部。 ## 选项 ```shell -n 抑制删除目录引起的当前工作目录变化。 ``` ## 参数 +N(可选):不带参数执行`dirs`命令显示的列表中,左起的第N个目录将被删除。(从0开始计数) -N(可选):不带参数执行`dirs`命令显示的列表中,右起的第N个目录将被删除。(从0开始计数) ## 返回值 返回成功除非提供了非法选项或执行出现错误。 ## 例子 ```sh...
sec-knowleage
# Temple of Doom > https://download.vulnhub.com/templeofdoom/temple-of-DOOM-v1.ova 靶场IP:`192.168.32.10` 扫描对外端口服务 ``` ┌──(root㉿kali)-[~] └─# nmap -sV -p1-65535 192.168.32.10 Starting Nmap 7.92 ( https://nmap.org ) at 2022-09-06 23:25 EDT Nmap scan report for 192.168.32.10 Host is up (0.00013s latency). Not shown: 65533 ...
sec-knowleage
# Delphi (web/crypto) ###ENG [PL](#pl-version) The task was in `web` category, but actually there was almost no `web` there, only `crypto`. We get a web interface in which we can invoke three commands from a select box. The commands are `netstat`, `ps aux`, and `echo "This is a longer string that I want to use to test ...
sec-knowleage
# S2-015 Remote Code Execution Vulnerablity [中文版本(Chinese version)](README.zh-cn.md) Affected Version: 2.0.0 - 2.3.14.2 Details: http://struts.apache.org/docs/s2-015.html ## Setup ``` docker compose build docker compose up -d ``` ## Reference Struts 2 allows define action mapping base on wildcards, like in examp...
sec-knowleage
# Spring Cloud Function SpEL表达式命令注入(CVE-2022-22963) Spring Cloud Function 提供了一个通用的模型,用于在各种平台上部署基于函数的软件,包括像 Amazon AWS Lambda 这样的 FaaS(函数即服务,function as a service)平台。 参考链接: - <https://tanzu.vmware.com/security/cve-2022-22963> - <https://mp.weixin.qq.com/s/onYJWIESgLaWS64lCgsKdw> - <https://github.com/spring-cloud/spr...
sec-knowleage
# Fractorization (crypto, 300p, 5 solved) In the challenge we get [encryption code](enc.py), [encrypted flag](flag.enc), [encrypted private key](priv.der.enc) and [public key](pub.der). The code is quite short and simple: 1. RSA keypair is generated in some secret way 2. Private RSA key is encrypted via AES-ECB 3. Flag...
sec-knowleage
# OpenSSL无限循环DOS漏洞(CVE-2022-0778) OpenSSL是一个开放源代码的软件库包,应用程序可以使用这个包来进行安全通信,避免窃听,同时确认另一端连接者的身份。这个包广泛被应用在互联网的网页服务器上。 OpenSSL 1.1.1m 版本及以前存在一处逻辑缺陷,攻击者可以利用一个无效的椭圆曲线参数证书,触发一个无限循环导致耗尽目标CPU。由于证书解析发生在验证证书签名之前,任何解析外部提供的证书的进程都可能受到拒绝服务的攻击。 参考链接: - <https://github.com/drago-96/CVE-2022-0778> - <https://www.cnblogs.com/logchen/p...
sec-knowleage
# 认证 > 注 : 笔记中拓扑图 drawio 与 xmind 源文件在其图片目录下 --- <p align="center"> <img src="../../../../assets/img/Integrated/Windows/笔记/认证/Windows认证.png" width="70%"> </p> --- ## 大纲 * **[本地认证](#本地认证)** * [LM-Hash](#lm-hash) * [NTLM-Hash](#ntlm-hash) * [本地认证流程](#本地认证流程) * [DPAPI](#dpapi) * **[网络认证](#网络认证)** * ...
sec-knowleage
### [第一课:windows提权-快速查找exp](../Chapter1/1_windows提权-快速查找exp.md) ### [第二课:Linux提权-依赖exp篇](../Chapter1/2_Linux提权-依赖exp篇.md) ### [第三课:Delphi代码审计--项目实战1](../Chapter1/3_Delphi代码审计--项目实战1.md) ### [第四课:Asp代码审计--项目实战2](../Chapter1/4_Asp代码审计--项目实战2.md) ### [第五课:工具介绍-Sqlmap](../Chapter1/5_工具介绍-Sqlmap.md) ### [第六课:反攻的一次...
sec-knowleage
cpio === 用来建立、还原备份档的工具程序 ## 补充说明 **cpio命令** 主要是用来建立或者还原备份档的工具程序,cpio命令可以复制文件到归档包中,或者从归档包中复制文件。 ### 语法 ```shell cpio(选项) ``` ### 选项 ```shell -0或--null:接受新增列控制字符,通常配合find指令的“-print0”参数使用; -a或--rest-access-time:重新设置文件的存取时间; -A或--append:附加到已存在的备份文档中,且这个备份文档必须存放在磁盘上,而不能放置于磁带机里; -b或--awap:此参数的效果和同时指定“-ss”参数相同; -B:将输入/输出的区块...
sec-knowleage
# Aria2 Arbitrary File Write Vulnerability [中文版本(Chinese version)](README.zh-cn.md) Aria2 is a lightweight, multi-protocol, multi-source download tool (supports HTTP/HTTPS, FTP, BitTorrent, Metalink) with built-in XML-RPC and JSON-RPC interfaces. We can use the RPC interface to operate aria2 and download files to an...
sec-knowleage
.TH quotacheck 8 "Mon Jul 17 2000" .SH NAME quotacheck \- 扫描文件系统,创建,检测并修补配额文件 .SH 总览(SYNOPSIS) .B quotacheck [ .B -agucfinvdFR ] .I filesystem .br .SH 描述(DESCRIPTION) .B quotacheck 察看每一个文件系统,建立当前磁盘使用情况表,并将 此表与配额文件中相应内容比较(如果使用了选项 .B \-c , 这一步将省略).如果发现任何不一致,同时更新配额文件和当前 不正确的系统配额拷贝(只有当选择使用配额的文件系统时,才更新 后者).在缺省状态下,只选择用户配额....
sec-knowleage
### .symtab: Symbol Table概述 每个目标文件都会有一个符号表,熟悉编译原理的就会知道,在编译程序时,必须有相应的结构来管理程序中的符号以便于对函数和变量进行重定位。 此外,链接本质就是把多个不同的目标文件相互“粘”在一起。实际上,目标文件相互粘合是目标文件之间对地址的引用,即函数和变量的地址的相互引用。而在粘合的过程中,符号就是其中的粘合剂。 目标文件中的符号表包含了**一些通用的符号**,这部分信息在进行了 `strip` 操作后就会消失。这些符号信息可能包括变量名、函数名。 符号表可以被视为一个数组,数组中的每一个元素都是一个结构体,具体如下 ```c typedef struct { Elf32...
sec-knowleage
# 11. 旋转数组的最小数字 ## 题目链接 [牛客网](https://www.nowcoder.com/practice/9f3231a991af4f55b95579b44b7a01ba?tpId=13&tqId=11159&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github) ## 题目描述 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。 <div align="center"> <img src="htt...
sec-knowleage
# Writeup BCTF 2016 Team: akrasuski1, c7f.m0d3, cr019283, graszka, msm, nazywam, other019, rev, shalom ### Table of contents * ruin (exploit, 200) * irc (misc, 10) * catvideo (stegano, 150) * Special RSA (crypto, 200) * memo (exploit, 300) * BetaFour (ppc, 500) * bcloud (exploit, 150) * [zerodaystore (misc, 200)](misc_...
sec-knowleage
/* * Copyright 2015-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
sec-knowleage
# Spring Cloud Gateway Actuator API SpEL Code Injection (CVE-2022-22947) [中文版本(Chinese version)](README.zh-cn.md) Spring Cloud Gateway provides a library for building an API Gateway on top of Spring WebFlux. Applications using Spring Cloud Gateway in the version prior to 3.1.0 and 3.0.6, are vulnerable to a code inj...
sec-knowleage
# LoadMe > We have developed a super soft that gives meal ideas based on ingredients. The service is still in beta but the interface should look like this: > > nc loadme.insomnihack.ch 1337 Even though it's supposed to be a pwn challenge we get no binary to reverse engineer. ``` $ nc loadme.insomnihack.ch 1337 ██╗██...
sec-knowleage
# Jetty Utility Servlets ConcatServlet Double Decoding Information Disclosure Vulnerability (CVE-2021-28169) [中文版本(Chinese version)](README.zh-cn.md) Eclipse Jetty is a Java web server and Java Servlet container. Before version 9.4.40, 10.0.2, 11.0.2, the `ConcatServlet` and `WelcomeFilter` classes in Jetty Servlets...
sec-knowleage
<!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> <link rel="stylesheet" href="static/app.css"> </head> <body> <h1>Welcome to nginx!</h1> <p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p> <p>For online documentation and support plea...
sec-knowleage
--- title: PhpStorm date: 2022-11-23 16:23:31.703719 background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-emerald-400 hover:to-blue-500 label: tags: - jetbrains categories: - Keyboard Shortcuts intro: | A visual cheat-sheet for the 96 keyboard shortcuts found in JetBrains PhpStorm --- Keyboa...
sec-knowleage
'\" '\" Copyright (c) 1997 by Sun Microsystems, Inc. '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" '\" RCS: @(#) $Id: binary.n,v 1.2 2003/11/24 05:09:59 bbbush Exp $ '\" '\" The definitions below are for supplemental macr...
sec-knowleage
version: '2' services: web: image: vulhub/librsvg:2.50.7-php command: php -t /var/www/html -S 0.0.0.0:8080 volumes: - ./index.php:/var/www/html/index.php ports: - "8080:8080"
sec-knowleage
# T1489-win-停止服务 ## 来自ATT&CK的描述 攻击者可以停止或禁用系统上的服务,以使合法用户无法使用这些服务。停止关键服务可以抑制或停止这些服务对攻击者入侵相关事件的响应,或者帮助攻击者对系统环境进行破坏。 攻击者可以禁用对组织很重要的单个服务来实现这一目标,例如MSExchangeIS,这回导致Exchange内容无法访问。在某些情况下,攻击者可能会停止或禁用许多或所有服务,从而使系统无法使用。服务可能不允许在运行时修改其存储的数据。攻击者可能会停止服务,从而对Exchange和SQL Server等服务的存储数据进行销毁数据和加密数据。 ## 测试案例 使用Windows命令行启动关闭服务(net,sc用法),...
sec-knowleage
# hello react-thunk `thunk`:模式转换 ### Action Creator Action Creator 不是 thunk 的功能,是 redux 自带功能,但是 thunk 发挥作用,就是在 action creator 里面。所以介绍 thunk 之前先单纯用一下 Action Creator Action creator 是 Flux 的产物,用来创建 Action,它是一个函数,返回值为 Action对象。所以它的唯一功能就是返回一个 Action 供 dispatch 进行调用 >functions that create actions 创建 Action 函数 (可以复用) ```js le...
sec-knowleage
--- title: QuickRef date: 2020-11-25 18:28:43 background: bg-gradient-to-l from-green-400 to-blue-500 hover:from-pink-500 hover:to-yellow-500 tags: - guide - reference categories: - Other intro: This is the magic syntax variant manual that you can use on QuickRef.ME, It's a good practice for contributors. p...
sec-knowleage
# miniforge - https://github.com/conda-forge/miniforge --- **安装 miniforge** ```bash wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh mv Miniforge3-MacOSX-arm64.sh ~/ cd bash Miniforge3-MacOSX-arm64.sh ``` ```bash source .zshrc conda --version # 测试一下conda是否安装完成 ``` **...
sec-knowleage
# T1071-002-win-内网FTP链接到公网行为 ## 来自ATT&CK的描述 攻击者可以使用与传输文件关联的应用程序层协议进行通信,以免与现有流量混在一起进行检测网络过滤。远程系统的命令(通常是这些命令的结果)将嵌入在客户端和服务器之间的协议流量中。 传输文件的协议(例如FTP,FTPS和TFTP)在环境中可能很常见。从这些协议产生的数据包可能具有许多字段和标头,可以在其中隐藏数据。数据也可以隐藏在传输的文件中。攻击者可能会滥用这些协议以与受害网络中受其控制的系统进行通信,同时还会模仿正常的预期流量。 ## 测试案例 检测可能使用FTP网络连接到Internet的事件。自1980年代以来,文件传输协议(FTP)一直以其当前...
sec-knowleage
strings === 在对象文件或二进制文件中查找可打印的字符串 ## 补充说明 **strings命令** 在对象文件或二进制文件中查找可打印的字符串。字符串是4个或更多可打印字符的任意序列,以换行符或空字符结束。 strings命令对识别随机对象文件很有用。 ### 语法 ```shell strings [ -a ] [ - ] [ -o ] [ -t Format ] [ -n Number ] [ -Number ] [file ... ] ``` ### 选项 ```shell -a --all:扫描整个文件而不是只扫描目标文件初始化和装载段 -f –print-file-name:在显示字符串前先显示文件名 -...
sec-knowleage
uptime === 查看Linux系统负载信息 ## 补充说明 **uptime命令** 能够打印系统总共运行了多长时间和系统的平均负载。uptime命令可以显示的信息显示依次为:现在时间、系统已经运行了多长时间、目前有多少登陆用户、系统在过去的1分钟、5分钟和15分钟内的平均负载。 ### 语法 ```shell uptime(选项) ``` ### 选项 ```shell -V:显示指令的版本信息。 ``` ### 实例 使用uptime命令查看系统负载: ```shell [root@LinServ-1 ~]# uptime -V #显示uptime命令版本信息 procps version 3.2.7 [roo...
sec-knowleage
'\" t .TH "SYSTEMD\-PATH" "1" "" "systemd 231" "systemd-path" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://b...
sec-knowleage
# 蓝队概览 ## 蓝队构成 参考《解密彩虹团队非凡实战能力:企业安全体系建设》,范渊。 - 威胁猎人 - 主要负责高级威胁研究和分析,以及对尚未成功检测到的对手及其行为进行威胁狩猎 - 威胁分析师 - 主要负责NIDS、HIDS和SIEM等安全检测、安全事件管理系统的规则开发,以及告警分析、网络流量分析、漏洞评估、风险评估 - 威胁情报分析师 - 主要负责追踪和分析外部已知/未知的威胁行为者的活动。进行深网、暗网监控,开源情报收集(OSINT)、挖掘,并且最后分类总结成TTP、IOCs提供给其他团队进行利用、深层分析 - 注:威胁行为者,Threat Actor,指影响某...
sec-knowleage
# T1555-003-windows-来自web浏览器的凭证 ## 来自ATT&CK的描述 在后渗透阶段,获得权限之后攻击者需要收集目标系统上的相关信息,收集的信息越全面详细,对攻击者的进一步渗透帮助更大。对于windows系统来讲,用户浏览器往往包含着有价值的信息。 攻击者可以通过读取特定目标服务器上的浏览器文件来从Web浏览器获取凭据。 Web浏览器通常会保存凭据,例如网站用户名和密码,以便将来无需手动输入它们,实现自动登录。Web浏览器通常将凭据以加密格式存储在凭据存储区中。但是,存在从Web浏览器中提取纯文本凭据的方法。 例如,在Windows系统上,可以通过读取数据库文件AppData\Local\Google\Chro...
sec-knowleage
# Buenos Aires - Conference Category: Crypto ## Description > You are showing the invitation so that you can enter the conference. There are hundreds of important looking people at the conference. You take a glass of champagne from a tray, and try to look important yourself. After being busy with trying to look importa...
sec-knowleage
# 计算机网络 - 物理层 <!-- GFM-TOC --> * [计算机网络 - 物理层](#计算机网络---物理层) * [通信方式](#通信方式) * [带通调制](#带通调制) <!-- GFM-TOC --> ## 通信方式 根据信息在传输线上的传送方向,分为以下三种通信方式: - 单工通信:单向传输 - 半双工通信:双向交替传输 - 全双工通信:双向同时传输 ## 带通调制 模拟信号是连续的信号,数字信号是离散的信号。带通调制把数字信号转换为模拟信号。 <div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.m...
sec-knowleage
protoize === GNU-C代码转换为ANSI-C代码 ## 补充说明 **protoize命令** 属于gcc套件,用于为C语言源代码文件添加函数原型,将GNU-C代码转换为ANSI-C代码。 ### 语法 ```shell protoize(选项)(参数) ``` ### 选项 ```shell -d:设置需要转换代码的目录; -x:转换代码时排除的文件。 ``` ### 参数 文件:需要转换代码的C语言源文件。
sec-knowleage
# Pitter, Patter, Platters Category: Forensics ## Description > 'Suspicious' is written all over this disk image. A binary file was attached. ## Solution Let's check what's the file we got: ```console root@kali:/media/sf_CTFs/pico/Pitter_Patter_Platters# file suspicious.dd.sda1 suspicious.dd.sda1: Linux rev 1.0 ext3 fi...
sec-knowleage
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH LINK 1 2022年9月 "GNU coreutils 9.1...
sec-knowleage
chown === 用来变更文件或目录的拥有者或所属群组 ## 补充说明 **chown命令** 改变某个文件或目录的所有者和所属的组,该命令可以向某个用户授权,使该用户变成指定文件的所有者或者改变文件所属的组。用户可以是用户或者是用户D,用户组可以是组名或组id。文件名可以使由空格分开的文件列表,在文件名中可以包含通配符。 只有文件主和超级用户才可以使用该命令。 ### 语法 ```shell chown(选项)(参数) ``` ### 选项 ```shell -c或——changes:效果类似“-v”参数,但仅回报更改的部分; -f或--quite或——silent:不显示错误信息; -h或--no-dereference:...
sec-knowleage
**关于分离免杀,其他章节参考:** * 68课时payload特征,行为分离免杀思路第一季 * 69课时payload分离免杀思路第二季 本季针对目标环境支持aspx进行分离免杀。 **靶机背景:** * Windows 2003 * Debian Windows 2003: ![](media/9104a6f1137ab57d036f0991e729abf9.jpg) ![](media/2182d6d13212bb3cde601fe2599b1881.jpg) ```bash msf auxiliary(server/socks4a) > use exploit/multi/handler msf e...
sec-knowleage
# Weblogic 常规渗透测试环境 ## 测试环境 本环境模拟了一个真实的weblogic环境,其后台存在一个弱口令,并且前台存在任意文件读取漏洞。分别通过这两种漏洞,模拟对weblogic场景的渗透。 Weblogic版本:10.3.6(11g) Java版本:1.6 启动本环境: ``` docker compose up -d ``` ## 弱口令 环境启动后,访问`http://your-ip:7001/console`,即为weblogic后台。 本环境存在弱口令: - weblogic - Oracle@123 weblogic常用弱口令: http://cirt.net/passwords...
sec-knowleage
# Multicast (misc, 175p) ## ENG [PL](#pl-version) In the task we get a [sage script](generate.sage) which generated the [data](data.txt): ```python nbits = 1024 e = 5 flag = open("flag.txt").read().strip() assert len(flag) <= 64 m = Integer(int(flag.encode('hex'),16)) out = open("data.txt","w") for i in range(e): w...
sec-knowleage
作者:c0d3p1ut0s & s1m0n https://paper.seebug.org/449/ ## RASP概念 RASP(Runtime Application self-protection)是一种在运行时检测攻击并且进行自我保护的一种技术。早在2012年,Gartner就开始关注RASP,惠普、WhiteHat Security等多家国外安全公司陆续推出RASP产品,时至今日,惠普企业的软件部门出售给了Micro Focus,RASP产品Application Defender随之易主。而在国内,去年知道创宇KCon大会兵器谱展示了JavaRASP,前一段时间,百度开源了OpenRASP,去年年底,360的0k...
sec-knowleage
# Django --- ## Linux 上安装 Django - https://www.djangoproject.com/download/ ```bash pip3 install Django ``` **验证** ```bash python3 import django django.VERSION ``` --- ## Django 管理工具 **django-admin** ``` ✦ ❯ django-admin Type 'django-admin help <subcommand>' for help on a specific subcommand. Available subcommands: [dja...
sec-knowleage
--- title: MongoDB date: 2023-04-05 background: bg-gradient-to-r from-green-900 via-green-600 to-green-400 hover:from-green-900 hover:via-green-700 hover:to-green-500 tags: - NoSQL - DB categories: - Database intro: The MongoDB cheat sheet provides you with the most commonly used MongoDB commands and queries for ...
sec-knowleage
## Offensive 400 (Offensive, 400p) ###ENG [PL](#pl-version) Challenge starts on webpage which doesn't contain anything (or it looks like this). But after looking at the source code we spot interesting javacript file (named "ads.js"). After deobfuscation it looked like this: ```javascript var mnt = function() { window....
sec-knowleage
--- title: Sass date: 2020-12-20 22:15:43 background: bg-[#ba6993] label: CSS tags: - css categories: - Programming intro: | This is a quick reference cheat sheet that lists the most useful features of [SASS](https://sass-lang.com). plugins: - copyCode --- Sass Basics -------- ### Introduction - [Docu...
sec-knowleage
# RHME3, 2018 A nice three month competition, focused on hardware and low-level software bugs and vulnerabilities. Organizers sent an AVR XMEGA board to each participant. It also had two CAN interfaces, for some protocol reversing challenges. All in all, we finished at sixth place, with 2803 points and the following ta...
sec-knowleage
# Redis Lua Sandbox Escape and Remote Code Execution (CVE-2022-0543) [中文版本(Chinese version)](README.zh-cn.md) Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Reginaldo Silva discovered that due to a packaging issue on Debian/Ubuntu, a remote atta...
sec-knowleage
# 威胁情报库建设 持续性建设模式成为了现在企业安全的一个大方向,其中情报常常成为安全建设的中心。本篇内容总总结威胁情报库建设相关内容。 让我们先来回顾一下威胁情报的定义: > SANS:针对安全威胁、威胁者、利用、恶意软件、漏洞和危害指标、所收集的用于评估的应用**数据集**。 威胁情报的本职是一个数据集,针对数据集我们不免会发问:如何获取、如何分析、如何存储、如何共享、如何应用 建设威胁情报库主要就是要解决其中:如何生产、如何存储、如何共享的问题,如果用威胁情报的生命周期来定义,我们所需要解决的步骤有:制定情报计划,情报收集,威胁情报预处理与利用环节,威胁情报分析与生产,情报输送,威胁情报的计划优化与修订。 ## MISP部署与...
sec-knowleage
# zabbix latest.php SQL注入漏洞(CVE-2016-10134) zabbix是一款服务器监控软件,其由server、agent、web等模块组成,其中web模块由PHP编写,用来显示数据库中的结果。 ## 运行环境 执行如下命令启动zabbix 3.0.3: ``` docker compose up -d ``` 执行命令后,将启动数据库(mysql)、zabbix server、zabbix agent、zabbix web。如果内存稍小,可能会存在某个容器挂掉的情况,我们可以通过`docker compose ps`查看容器状态,并通过`docker compose start`来重新启动容器...
sec-knowleage
'\" '\" Copyright (c) 1993 The Regents of the University of California. '\" Copyright (c) 1994-1996 Sun Microsystems, Inc. '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" '\" RCS: @(#) $Id: lreplace.n,v 1.2 2003/11/24 05:09:...
sec-knowleage
.\" manual page [] for pppd 2.4 .\" SH section heading .\" SS subsection heading .\" LP paragraph .\" IP indented paragraph .\" TP hanging label .TH PPPD 8 .SH NAME pppd \- 点对点协议守护进程 .SH "总览 SYNOPSIS" .B pppd [ .I tty_name ] [ .I speed ] [ .I options ] .SH "描述" .LP 点对点协议 (PPP) 提供一种在点对点串列线路上传输资料流 (datagrams)的方法。PPP是由三个部...
sec-knowleage
# Java RMI > Exposing a weak configured Java Remote Method Invocation (RMI) service can lead to several ways to achieve RCE. > One such attack is to host an MLet file and instruct the JMX service to load MBeans from the remote host which can be carried out > using the tools mjet or sjet. remote-method-guesser is a more...
sec-knowleage
# got-2-learn-libc Binary Exploitation, 250 points ## Description: > This program gives you the address of some system calls. Can you get a shell? ```c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #define BUFSIZE 148 #define FLAGSIZE 128 char useful_string[16] = ...
sec-knowleage
# SmellyOnion Misc., 10 points ## Description > I cry when I cut onions. An archive file was provided. ## Solution Let's extract the provided archive file: ```console root@kali:/media/sf_CTFs/kaf/SmellyOnion# file smelly-onion.rar smelly-onion.rar: RAR archive data, v5 root@kali:/media/sf_CTFs/kaf/SmellyOnion# mkdir te...
sec-knowleage
nproc === 打印可用的处理器单元数量。 ## 概要 ```shell nproc [OPTION]... ``` ## 主要用途 - 打印可用的处理器单元数量。 ## 选项 ```shell --all 打印已安装处理器的数量。 --ignore=N 如果可以的情况下,排除 N 个处理单元。 --help 显示帮助信息并退出。 --version 显示版本信息并退出。 ``` ## 例子 ```shell [root@localhost ~]# nproc 8 ``` ### 注意 1. 该命令是`GNU coreutils`包中的命令,相关的帮助信息请查看`man -s 1 np...
sec-knowleage
#!/usr/bin/env python from Crypto.Util.number import * import os,sys sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0) sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) def read_key(): key_file = open("key") n,e,d = map(int,key_file.readlines()[:3]) return n,e,d def calc(n,p,input): data = "X: "+inp...
sec-knowleage
# 内核堆概述 类似于用户态进程中的堆(heap),内核也有着自己的一套动态内存管理机制,为了方便这里我们同样将内核中动态分配的内存称为“堆”。 Linux kernel 将内存分为 `页→区→节点` 三级结构,主要有两个内存管理器—— `buddy system` 与 `slab allocator`,前者负责以内存页为粒度管理所有可用的物理内存,后者则向前者请求内存页并划分为多个较小的对象(object)以进行细粒度的内存管理。 ## 页→区→节点三级结构 这是一张十分经典的 _Overview_ ,自顶向下是 - **节点**(node,对应结构体 pgdata\_list) - **区**(zone,对应结构体 zone,...
sec-knowleage
# The osiris, misc The only thing in this task we had was this youtube link `https://www.youtube.com/watch?v=Je5E4jqEE_s`. It seems like the `Osiris device` is transmitting some sort of a message. The first step was to extract each of the 6bit words. I got a little bit too fancy with that, wanted to automate this task....
sec-knowleage
# Magento 2.2 SQL注入漏洞 Magento(麦进斗)是一款新的专业开源电子商务平台,采用php进行开发,使用Zend Framework框架。设计得非常灵活,具有模块化架构体系和丰富的功能。 其prepareSqlCondition函数存在一处二次格式化字符串的bug,导致引入了非预期的单引号,造成SQL注入漏洞。 参考链接: - https://www.ambionics.io/blog/magento-sqli - https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.8CE.html ## 环境搭建 执行如下命令启...
sec-knowleage
host === 常用的分析域名查询工具 ## 补充说明 **host命令** 是常用的分析域名查询工具,可以用来测试域名系统工作是否正常。 ### 语法 ```shell host(选项)(参数) ``` ### 选项 ```shell -a:显示详细的DNS信息; -c<类型>:指定查询类型,默认值为“IN“; -C:查询指定主机的完整的SOA记录; -r:在查询域名时,不使用递归的查询方式; -t<类型>:指定查询的域名信息类型; -v:显示指令执行的详细信息; -w:如果域名服务器没有给出应答信息,则总是等待,直到域名服务器给出应答; -W<时间>:指定域名查询的最长时间,如果在指定时间内域名服务器没有给出应答信息,则退...
sec-knowleage
from library import * if len(sys.argv) > 2: n = int(sys.argv[2]) else: n = None i, o, t = load_npz(sys.argv[1], n) t = t[:, 436000:465000] align_fft(t, 1000) inda = [j for j in range(len(i)) if i[j][0] == 0xaa] indb = [j for j in range(len(i)) if i[j][0] != 0xaa] t01 = t ts = [] for ind in [inda, indb]: ...
sec-knowleage
<?php require __DIR__ . '/vendor/autoload.php'; use GuzzleHttp\Client; header('Content-Type: application/json; charset=utf-8'); $client = new Client([ // Base URI is used with relative requests 'base_uri' => 'http://httpbin.org', // You can set any number of default request options. 'timeout' => 2....
sec-knowleage
iconv === 转换文件的编码方式 ## 补充说明 **iconv命令** 是用来转换文件的编码方式的,比如它可以将UTF8编码的转换成GB18030的编码,反过来也行。JDK中也提供了类似的工具native2ascii。Linux下的iconv开发库包括iconv_open,iconv_close,iconv等C函数,可以用来在C/C++程序中很方便的转换字符编码,这在抓取网页的程序中很有用处,而iconv命令在调试此类程序时用得着。 ### 语法 ```shell iconv -f encoding [-t encoding] [inputfile]... ``` ### 选项 ```shell -f encoding...
sec-knowleage
v5 = [0] * 32 if 1: v5[0] = -25095; v5[1] = 1630; v5[2] = 15252; v5[3] = -1319; v5[4] = -15399; v5[5] = -494; v5[6] = -23173; v5[7] = -28535; v5[8] = 16303; v5[9] = -17615; v5[10] = 19629; v5[11] = 5141; v5[12] = 29901; v5[13] = -12534; v5[14] = 7393; v5[15] = -19110; v5[16] = 21702; ...
sec-knowleage
--- title: Kali Linux信息收集之CDPSnarf categories: Information Gathering tags: [kali linux,cdp,cdpsnarf,sniffing,information gathering,enumeration] date: 2016-10-19 13:33:31 --- 0x00 CDPSnarf介绍 ------------- CDPSnarf是专门用于从CDP包提取信息的网络嗅探器,它提供所有信息通过一个“show cdp neighbors detail”命令返回Cisco路由器信息,甚至更多信息。 其工作原理主要是利用Cisco的[CDP协议][1]...
sec-knowleage
indent === 格式化C语言的源文件 ## 补充说明 **indent命令** 可辨识C的原始代码文件,并加以格式化,以方便程序员阅读、修改等操作。 ### 语法 ```shell indent(选项)(源文件) 或 indent(选项)(源文件)(-o 目标文件) ``` ### 选项 ```shell -bad:在声明区加上空白行; -bap:添加空白行; -bbb:在注释后面添加空白行; -bc:在声明段中,如果出现逗号就换行; -bl:if(或是else、for等)与后面执行区段的“{”不同行,且“}”自成一行-bli<缩排格数>设置{}缩排的格数; -br:if(或是else、for等)与后面执行区段的“{”同行...
sec-knowleage
## 前言 `T Wiki` 是一个面向云安全方向的知识库,这一点是和其他文库最大的不同,也许这是国内第一个云安全知识文库? 搭建这个文库的起因是笔者发现在云安全方向的中文资料属实不多,少有的这些资料也很散乱,于是搭建了这个文库。 文库的地址为:[wiki.teamssix.com](https://wiki.teamssix.com/) ## 文库介绍 首先来看文库首页,文库主要分成了三个板块,分别为`云服务`、`云原生`、`云安全资源` ![](https://cdn.jsdelivr.net/gh/teamssix/BlogImages/imgs/202204152146075.png) 首先来看`云安全资源`板块,这个板块是...
sec-knowleage