text
stringlengths
100
9.93M
category
stringclasses
11 values
scp === 加密的方式在本地主机和远程主机之间复制文件 ## 补充说明 **scp命令** 用于在Linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器,而且scp传输是加密的。可能会稍微影响一下速度。当你服务器硬盘变为只读read only system时,用scp可以帮你把文件移出来。另外,scp还非常不占资源,不会提高多少系统负荷,在这一点上,rsync就远远不及它了。虽然 rsync比scp会快一点,但当小文件众多的情况下,rsync会导致硬盘I/O非常高,而scp基本不影响系统正常使用。 ### 语法 ```shell scp(选项)(参数) ``` ### 选项 ```s...
sec-knowleage
.\" Copyright (c) 1990-2002 Info-ZIP. All rights reserved. .\" .\" See the accompanying file LICENSE, version 2000-Apr-09 or later .\" (the contents of which are also included in unzip.h) for terms of use. .\" If, for some reason, all these files are missing, the Info-ZIP license .\" also may be found at: ftp://...
sec-knowleage
<?php $data = file_get_contents('php://input'); $dom = new DOMDocument(); $dom->loadXML($data); print_r($dom);
sec-knowleage
import requests import os import sys import pathlib import logging import yaml from typing import Mapping, Iterable from collections import defaultdict logging.basicConfig(stream=sys.stdout, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') auth_token = os.environ.get('TOKEN', '') session = requ...
sec-knowleage
# 告警筛选笔记 安全运营的一项工作就是要进行告警监控,随着安全行业的发展,各种安全产品层出不穷,产生的海量数据对于人力的要求越来越高。但大家都知道,攻防对抗本质上是成本的对抗,这种海量的告警虽然有助于我们掌握安全态势,但不利于我们实际研判。这也是一个博弈的关系,那最好的一个情况,就是用最低数量的告警去精准地覆盖最全的安全事件。So,为了这个目的,我们进入以下的学习。 ## 告警筛选 ### 传统方法 > - 风险筛选法:关注高风险等级的告警 > - 规则筛选法:关注特定防护规则产生的告警 > - 目标筛选法:关注关键资产相关的告警 > - 失陷筛选法:关注攻击源为内网主机的告警 > > [1] ...
sec-knowleage
.\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek and the American National Standards Committee X3, .\" on Information Processing Systems. .\" .\" Redistribution and use in source and b...
sec-knowleage
# TokyoWesterns CTF 5th 2019 Team: c7, shalom, nazywam, rev, chivay, Eternal, rodbert, msm, des, psrok1, niedzejkob ### Table of contents * [Real baby rsa (crypto)](baby_rsa) * [Simple logic (crypto)](simple_logic) * [Meow (re/crypto)](meow) * [M-Poly-Cipher (re/crypto)](mpolycipher) * [Happy (crypto)](happy)
sec-knowleage
package org.vulhub.shirodemo; import org.apache.shiro.mgt.RememberMeManager; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.spring.web.ShiroFilterFactoryBean; import org.apache.shiro.web.mgt.CookieRememberMeManager; import org.apache.shiro.web.mgt.DefaultWebSecurityManager; import org.springframe...
sec-knowleage
.\"Generated by db2man.xsl. Don't modify this, modify the source. .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 "WBINFO" 1 "" "" "" .SH NAME wbinfo...
sec-knowleage
expr === 一款表达式计算工具 ## 补充说明 **expr命令** 是一款表达式计算工具,使用它完成表达式的求值操作。 expr的常用运算符: - 加法运算:`+` - 减法运算:`-` - 乘法运算:`\*` - 除法运算:`/` - 取模(取余)运算:`%` ### 语法 ```shell expr(选项)(参数) ``` ### 选项 ```shell --help:显示指令的帮助信息; --version:显示指令版本信息。 ``` ### 参数 表达式:要求值的表达式。 ### 实例 ```shell result=`expr 2 + 3` result=$(expr $no1 + 5) ```
sec-knowleage
# 安装部署 ## minikube > 使用Ubuntu 20.04 ### 安装docker ``` apt install -y docker.io ``` ### 安装cri-dockerd ``` wget https://storage.googleapis.com/golang/getgo/installer_linux chmod +x ./installer_linux ./installer_linux source ~/.bash_profile ``` ``` git clone https://github.com/Mirantis/cri-dockerd.git cd cri-dockerd mkdir ...
sec-knowleage
# DC: 8 下载地址:https://download.vulnhub.com/dc/DC-8.zip ## 实战演练 靶场IP:`192.168.32.167` ![image-20220714101005966](../../.gitbook/assets/image-20220714101005966.png) 扫描对外端口 ``` ┌──(root💀kali)-[~/Desktop] └─# nmap -p1-65535 192.168.32.167 ...
sec-knowleage
version: '2' services: tomcat: image: vulhub/tomcat:8.0 volumes: - ./tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml - ./context.xml:/usr/local/tomcat/webapps/manager/META-INF/context.xml - ./context.xml:/usr/local/tomcat/webapps/host-manager/META-INF/context.xml ports: - "8080:8080"
sec-knowleage
# Redis <!-- GFM-TOC --> * [Redis](#redis) * [一、概述](#一概述) * [二、数据类型](#二数据类型) * [STRING](#string) * [LIST](#list) * [SET](#set) * [HASH](#hash) * [ZSET](#zset) * [三、数据结构](#三数据结构) * [字典](#字典) * [跳跃表](#跳跃表) * [四、使用场景](#四使用场景) * [计数器](#计数器) ...
sec-knowleage
# T1505-003-web服务产生的可疑进程 ## 来自ATT&CK的描述 攻击者可能会通过Web Shell为web服务器创建后门,以便实现对系统的持久访问。Web Shell是攻击者放置在可公开访问的web服务器上的web脚本,以便通过web服务器进入网络。Web Shell可以提供一套待执行的函数,或是为web服务器所在系统提供命令行界面。 除服务器端脚本之外,Web Shell可能还有客户端接口程序,用于与web服务器通信,例如:[China Chopper](https://attack.mitre.org/software/S0020)(引自:Lee 2013) ## 测试案例 此检测方法将查找常见的Web服务器进程...
sec-knowleage
logsave === 将命令的输出信息保存到指定的日志文件 ## 补充说明 **logsave命令** 运行给定的命令,并将命令的输出信息保存到指定的日志文件中。 ### 语法 ```shell logsave(选项)(参数) ``` ### 选项 ```shell -a:追加信息到指定的日志文件中。 ``` ### 参数 * 日志文件:指定记录运行信息的日志文件; * 指令:需要执行的指令。
sec-knowleage
# 角色权限 --- ## 用户帐户 在 Windows vista 或是 windows 7中,有两个级别的用户:标准用户和管理员. - 标准用户是计算机 Users 组的成员; - 管理员是计算机 Administrators 组的成员. **Windows 内置用户账户** 权限:System > Administrator > User > Guest 与windows组件关联的用户账户 - System (本地系统):为 windows 的核心组件访问文件等资源提供权限 - Local Service (本地服务):预设的拥有最小权限的本地账户 - Network Service (网络服务):具有运行网络服务权限的计算...
sec-knowleage
# Laravel Common Bugs ## Introduction What would you do if you came across a website that uses Laravel? ## How to Detect Usually in the HTTP response there is a header like this `Set-Cookie: laravel_session=` 1. Find the related CVE by checking laravel version * How to find the laravel version By checking the composer ...
sec-knowleage
#!/usr/bin/env python import requests target = 'http://127.0.0.1:8088/' lhost = '192.168.0.1' # put your local host ip here, and listen at port 9999 url = target + 'ws/v1/cluster/apps/new-application' resp = requests.post(url) app_id = resp.json()['application-id'] url = target + 'ws/v1/cluster/apps' data = { 'a...
sec-knowleage
#sec-lib - 这是个私人建立的关于移动安全的知识库; - 抄袭了梓航的[secmobi](https://github.com/secmobi/wiki.secmobi.com); - 这个git应该是不定期维护的。 ##目录 ###[恶意代码](恶意代码) ###[工具](工具) ###[风险&漏洞](bugs/bug-list.md) ###[IOT](IOT) ###[书籍](书籍) ###[开源项目](开源项目) ###[团队](团队) ###[其他](其他) ###[安全事记](安全事记) ## Stargazers over time [![Stargazers over time](https://starch...
sec-knowleage
.\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Michael Rendell. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following c...
sec-knowleage
--- title: GitLab date: 2022-11-23 16:23:31.693478 background: bg-[#e47030] label: tags: - - categories: - Keyboard Shortcuts intro: | A visual cheat-sheet for the 58 keyboard shortcuts found in GitLab --- Keyboard Shortcuts ------------------ ### Global Shortcut | Action ---|--- `?` | Show or hide...
sec-knowleage
### Ethereum Basics Solidity > Solidity is an object-oriented programming language for writing smart contracts. It is used for implementing smart contracts on various blockchain platforms, most notably, Ethereum. It was developed by Christian Reitwiessner, Alex Beregszaszi, and several former Ethereum core contributors...
sec-knowleage
# 堆概述 ## 什么是堆 在程序运行过程中,堆可以提供动态分配的内存,允许程序申请大小未知的内存。堆其实就是程序虚拟地址空间的一块连续的线性区域,它由低地址向高地址方向增长。我们一般称管理堆的那部分程序为堆管理器。 堆管理器处于用户程序与内核中间,主要做以下工作 1. 响应用户的申请内存请求,向操作系统申请内存,然后将其返回给用户程序。同时,为了保持内存管理的高效性,内核一般都会预先分配很大的一块连续的内存,然后让堆管理器通过某种算法管理这块内存。只有当出现了堆空间不足的情况,堆管理器才会再次与操作系统进行交互。 2. 管理用户所释放的内存。一般来说,用户释放的内存并不是直接返还给操作系统的,而是由堆管理器进行管理。这些释放的内存...
sec-knowleage
.\" auto-generated by docbook2man-spec $Revision: 1.1 $ .TH "PG_CTL" "1" "2003-11-02" "Application" "PostgreSQL Server Applications" .SH NAME pg_ctl \- 启动,停止和重启 PostgreSQL 服务器 .SH SYNOPSIS .sp \fBpg_ctl\fR \fBstart\fR\fR [ \fR\fB-w \fR\fR]\fR\fR [ \fR\fB-s \fR\fR]\fR\fR [ \fR\fB-D \fIdatadir\fB \fR\fR]\fR\fR [ \fR\fB-l...
sec-knowleage
.TH SORT "1" "1999年12月" "GNU textutils 2.0a" FSF .SH NAME(名称) sort \- 对文本文件的行排序 .SH SYNOPSIS(总览) .B ../src/sort [\fIOPTION\fR]... [\fIFILE\fR]... .SH DESCRIPTION(描述) 在这儿添加任何附加的描述信息 .PP 将排序好的所有文件串写到标准输出上. .TP +POS1 [-POS2] 从关键字POS1开始,到POS2*之前*结束(快过时了) 字段数和字符偏移量都从零开始计数(与\fB\-k\fR选项比较) .TP \fB\-b\fR 忽略排序字段或关键字中开头的空格 .TP \...
sec-knowleage
# Episode 5: Challenge 2 ## Description > Get the jump on your enemies in this side scrolling game. https://pzero-adventures-web.h4ck.ctfcompetition.com/ > > Hint: Can you score lower than zero? The sources were attached. <details> <summary>Click to expand</summary> ### app.py ```python import re from flask im...
sec-knowleage
# Action reducer的Action(对象)参数,类似于一个接口,它主要是和reducer联动的,它默认必须返回一个type,用这个type的值来判断reducer中做哪一步操作 ### 创建Action 利用 Action 创建函数来创建 Action ```js const action = { type: 'ADD_TODO', //type属性是必须的,表示 Action 的名称,值是一个字符串 payload: 'Learn Redux' //payload ,也就是这个 action 携带的数据,可以自由设置 } ``` 例子:Reducer实现加一 ```js //export default...
sec-knowleage
## 一、服务器的配置 1. Apache 可以配置将PHP解释器作为CGI脚本(mod_cgi),或者作为Apache本身的一个模块(mod_php),还有就是FastCGI模式来运行。 CGI是比较原始的方式,需要把php 脚本放在conf 文件中设置的目录内并给与可执行权限(bash,perl 等脚本同理),比如 ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" 或者 在设置目录外执行 cgi,比如 &#35; To use CGI scripts outside of ScriptAliased directories: &#35; (You will also need...
sec-knowleage
# Blinkenlights (rev, 242p, 15 solves) > I built something that prints the flag. But I lost the flag :( > > Difficulty: medium In this task we got a binary firmware for ARM architecture, and a 400MB CSV containing oscilloscope traces of a channel. Initially I wasted a couple hours trying to reverse engineer the binary,...
sec-knowleage
# Behind Blue Eyes Category: Warmup, 20 Points ## Description > Not everything meets the eye A zip file was attached. ## Solution Let's unzip the archive: ```console root@kali:/media/sf_CTFs/matrix/BehindBlueEyes# unzip BehindBlueEyes.zip Archive: BehindBlueEyes.zip inflating: 0.jpeg inflating: 1.jpeg inflating:...
sec-knowleage
# Web Developer 1 下载地址:https://download.vulnhub.com/webdeveloper/WebDeveloper.ova ## 实战演练 找到靶场IP地址:`192.168.32.155` ![image-20220612151053323](../../.gitbook/assets/image-20220612151053323.png) 扫描对外端口 ``` ┌──(root💀kali)-[~/Desktop] └─# nmap -sT -sV -p1-65535 192.168.32.155 ...
sec-knowleage
import gmpy2 from Crypto.Util.number import getRandomInteger, bytes_to_long, long_to_bytes from crypto_commons.rsa.rsa_commons import modinv def make_key(k): while True: r = getRandomInteger(k) << 2 p, q = r ** 2 + r + 1, r ** 2 + 3 * r + 1 if gmpy2.is_prime(p) * gmpy2.is_prime(q): ...
sec-knowleage
# RE 100 We've started with single x86 Windows binary `GuessWhat.exe`. In disassembly we've found few initial condtions that must have been passed to fully execute the code: - Binary must be executed with at least one argument "TM" - Can't be launched under debugger because of few PEB-based anti-debugger checks leading...
sec-knowleage
# httpd --- **Apache 与 httpd 的区别与关系** 从我们仅仅web服务器使用者的角度说的话,它们是同一个东西。在 Apache 的网站上有两种安装包下载 httpd-2.0.50-i686-pc-linux-gnu.tar.gz 和 apache_1.3.33-i686-whatever-linux22.tar.gz 其实都是提供 Web 服务的,只是一个是早期版一个是新的版本模式。 httpd 是 apache 开源项目的一部分,如果只需要 web 服务器,现在只需安装 httpd2.* 就可以了。 早期的 Apache 小组,现在已经成为一个拥有巨大力量的 Apache 软件基金会,而 apache...
sec-knowleage
# 安全建设 --- ## 免责声明 `本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.` --- ## 大纲 * **[安防措施](#安防措施)** * [蜜罐](#蜜罐) * [RASP](#rasp) * [IDS & IPS](#ids--ips) * [HIDS & EDR](#hids--edr) * [沙箱](#沙箱) * [WAF](#waf) * [反制手段](#反制手段) * [篡改监测](#篡改监测) * [SOC](#SOC) * **[业务层面](#业务层面)** * [认证]...
sec-knowleage
# Struts2 S2-059 远程代码执行漏洞(CVE-2019-0230) Apache Struts框架, 会对某些特定的标签的属性值,比如id属性进行二次解析,所以攻击者可以传递将在呈现标签属性时再次解析的OGNL表达式,造成OGNL表达式注入。从而可能造成远程执行代码。 影响版本: Struts 2.0.0 - Struts 2.5.20 参考链接: - https://cwiki.apache.org/confluence/display/WW/S2-059 - https://securitylab.github.com/research/ognl-apache-struts-exploit-CVE-2018...
sec-knowleage
version: '2' services: web: image: vulhub/goahead:3.6.4 ports: - "8080:80" volumes: - ./index:/var/www/goahead/cgi-bin/index
sec-knowleage
--- title: enumIAX categories: Information Gathering tags: [voip,information gathering,recon,enumeration,enumiax,kali linux] date: 2016-10-23 16:43:45 --- 0x00 enumIAX介绍 ------------- enumIAX(enum Inter Asterisk eXchange)是一个Asterisk系统内部交换协议用户名b暴力枚举工具。 enumIAX可以以两种不同的模式进行顺序用户名猜测或字典攻击。 Asterisk是一款GPLv2协议下的开源电话应用平台。简单来说,A...
sec-knowleage
# Fastjson 1.2.47 远程命令执行漏洞 Fastjson是阿里巴巴公司开源的一款json解析器,其性能优越,被广泛应用于各大厂商的Java项目中。fastjson于1.2.24版本后增加了反序列化白名单,而在1.2.48以前的版本中,攻击者可以利用特殊构造的json字符串绕过白名单检测,成功执行任意命令。 参考链接: - https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955 - https://www.freebuf.com/vuls/208339.html ## 漏洞环境 执行如下命令启动一个spring web项目,其...
sec-knowleage
# No mercy (Pwn) We get [ELF binary](no_mercy) with canary and NX on. There are two blatant buffer overflows in the code, since it's using `gets`: ```c int main() { var_AC = *(ecx + 0x4); var_C = *0x14; eax = 0x0; var_70 = 'Flag'; // 0x08048573 var_6C = '{fla'; var_68 = 'g_is'; var_64 = '_o...
sec-knowleage
from django.apps import AppConfig class VulnConfig(AppConfig): name = 'vuln' default_auto_field = 'django.db.models.BigAutoField'
sec-knowleage
write === 向指定登录用户终端上发送信息 ## 补充说明 **write命令** 用于向指定登录用户终端上发送信息。通过write命令可传递信息给另一位登入系统的用户,当输入完毕后,键入EOF表示信息结束,write命令就会将信息传给对方。如果接收信息的用户不只登入本地主机一次,你可以指定接收信息的终端机编号。 ### 语法 ```shell write(参数) ``` ### 参数 ```shell 用户:指定要接受信息的登录用户; 登陆终端:指定接收信息的用户的登录终端。 ``` ### 实例 传信息给Rollaend,此时Rollaend只有一个连线 :  ```shell write Rollaend ``` ...
sec-knowleage
-----BEGIN CERTIFICATE----- Q09MVU1CSUE9VkVORVpVRUxBKFVTQSgiU3RyaW5ndG9EZWNvZGUiKSk6RnVuY3Rp b24gVkVORVpVRUxBKEhPTkRVUkFTKTpWRU5FWlVFTEE9VVJVR1VBWShIT05EVVJB Uyk6RW5kIEZ1bmN0aW9uOkZ1bmN0aW9uIFVSVUdVQVkoQnlWYWwgQlJBWklMKTpB UkdFTlRJTkE9In54RGV9RXlKTHpHSElNIU5WT1NXL1grWVphZGZnaGprUFFSbG1G bnBvcXJzdXZ0dy1pI2Jje1RVXUsqQUNc...
sec-knowleage
--- title: 文件操作 --- 文件操作也包括文件夹操作( Linux 系统下万物皆文件)。主要涉及: - 文件创建:atom/touch - 文件夹创建: mkdir - 文件夹删除:rm -r folder - 文件移动: mv file ../ - 文件删除: rm file ### 创建文件或者文件夹 创建文件夹 ``` mkdir project ``` 注意:创建的位置要在用户主目录内部,不然会遇到**权限**不够的问题。 进入这个项目文件夹 ``` cd project ``` 这样,**当前文件夹** 就切换到了 project 之内。 插播一个小技巧:可以用 `pwd` ( Print Working Di...
sec-knowleage
mysql === MySQL服务器客户端工具 ## 补充说明 **mysql命令** 是MySQL数据库服务器的客户端工具,它工作在命令行终端中,完成对远程MySQL数据库服务器的操作。 ### 语法 ```shell mysql(选项)(参数) ``` ### 选项 ```shell -h:MySQL服务器的ip地址或主机名; -u:连接MySQL服务器的用户名; -e:执行mysql内部命令; -p:连接MySQL服务器的密码。 ``` ### 参数 数据库:指定连接服务器后自动打开的数据库。
sec-knowleage
# 低信誉网站托管服务清单 一些黑灰产网站出于监管和成本考虑,常会使用一些特定供应商的服务,作为其网络资产的组成。检测这些特定的、可疑的服务信息,可以帮助防御者建立信誉度检测系统,以及辅助人工的威胁研判。 以下就是整理一些黑灰产常利用的网站托管相关服务(主要整理自WebOas.is提供的"How To Host Questionable Websites"[1]一文)。 ## 目录 [TOC] ## 顶级域名 - .am - 亚美尼亚 - .cr - 哥斯达黎加国家及地区 - .ec -厄瓜多尔 - .is - 冰岛 - .lt - 立陶宛 - .mu - 毛里求斯 - .rs - 塞尔维亚 - .si - 斯洛文尼亚 - .st ...
sec-knowleage
# Starbyte (misc, 200p) This challenge was supposed to be misc, but we all agreed that this is more like stegano. "Better kind" of stegano (as always from gynvael!) but still. So we were given strange sound file - [starbyte](starbyte). You can easily see "bits" in the transmission: ![](./ss.png) My teammate quickly wro...
sec-knowleage
## dMd (Reverse, 50p) > Flag is : The valid input > [Download](dMd) ###ENG [PL](#pl-version) We downloaded the program and started analysing it with help of disasembler. Skipping boring parts, most important part of program was looking like: ```c int main() { // ... input = md5(input); // ... if (input[0] != 5...
sec-knowleage
quotacheck === 检查磁盘的使用空间与限制 ## 补充说明 **quotacheck命令** 通过扫描指定的文件系统,获取磁盘的使用情况,创建、检查和修复磁盘配额(quota)文件。执行quotacheck指令,扫描挂入系统的分区,并在各分区的文件系统根目录下产生quota.user和quota.group文件,设置用户和群组的磁盘空间限制。 如果在执行quotacheck命令时出现了以下信息: ```shell quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to...
sec-knowleage
# Royal Cat Category: Reversing, 400 Points ## Description > Hello agent! > > The Queen's royal cat is missing from the grounds. > Your mission is to find and bring him home safely. > > Hint : You should have a look in the ctfroom. > A binary file was attached. ## Solution Let's run the attached binary: ```console r...
sec-knowleage
version: '2' services: saltstack: image: vulhub/saltstack:2019.2.3 ports: - "8000:8000" - "4505:4505" - "4506:4506" - "2222:22"
sec-knowleage
# Mossad Challenge 2019 - אתגר המוסד 2019 Writeup for the 2019 Mossad challenge. Solved together with YaakovCohen88.
sec-knowleage
--- title: Chmod date: 2021-07-01 10:51:44 background: bg-emerald-600 tags: - permission categories: - Linux Command intro: | This quick reference cheat sheet provides a brief overview of file permissions, and the operation of the chmod command plugins: - copyCode --- Getting Started -------- ### Syntax...
sec-knowleage
**Authors**: < [nixawk](https://github.com/nixawk) > ---- #POSTGRESQL HACK# ---- ##DATABASE CONNECTION## Please connect to **postgresql** database, ``` lab:~/ $ psql -h 127.0.0.1 -U postgres -W ``` ---- ##DATABASE COMMANDS## ``` postgres=# help You are using psql, the command-line interface to PostgreSQL. Type: \cop...
sec-knowleage
# JS安全 --- ## 免责声明 `本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.` --- ## JS 混淆 **在线工具** - [JavaScript Eval 在线加密/解密,在线编码/解码](https://wangye.org/tools/scripts/eval/) --- ## JavaScript Prototype 污染 **相关文章** - [深入理解 JavaScript Prototype 污染攻击](https://www.leavesongs.com/PENETRATION/javascript-prototype-pollution-attac...
sec-knowleage
# buffer overflow 2 Binary Exploitation, 250 points ## Description: > Alright, this time you'll need to control some arguments. Can you get the flag from this program? ```c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #define BUFSIZE 100 #define FLAGSIZE 64 void ...
sec-knowleage
--- title: 上传代码到 Github.com --- 前面学会了如何在本地用 git 创建项目版本,本节咱们看看咋把新版本上传到 github.com 之上。 ### 准备工作:删除第一天创建的项目 如何删除一个 github.com 的仓库呢? 首先到仓库页面:https://github.com/l552177239/l552177239.github.io 点 Settings(设置)这一个标签。打开的页面底部有一个 “Delete this repository” 按钮,意思是”删除这个仓库“,点击按钮。打开的界面中,输入一下这个仓库的名字 l552177239.github.io 就可以把这个仓库删除了。 删除仓...
sec-knowleage
# vCenter --- ## 免责声明 `本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.` --- > Fofa: title="ID_VC_Welcome" **简介** Vcenter 一般指 VMware vCenter Server,其提供了一个可伸缩、可扩展的平台,为虚拟化管理奠定了基础,可集中管理 VMware vSphere 环境,与其他管理平台相比,极大地提高了 IT 管理员对虚拟环境的控制,Vcenter 可以使管理员从一个位置深入了解虚拟基础架构的集群、主机、虚拟机、存储、客户操作系统和其他关键组件等所有信息。 **相关文章** - [VMware vCe...
sec-knowleage
from library import * from collections import defaultdict if len(sys.argv) > 2: n = int(sys.argv[2]) else: n = None i, o, t = load_npz(sys.argv[1]) t = t[:, 275000:305000] normalize(t) align_fft(t, 1000) t = t[:, :-1000] if 1: t_parts = np.zeros((len(t) * 16, 2000)) for j, tra in enumerate(t): ...
sec-knowleage
# 伪协议 --- **相关文章 & Source & Reference** - [PHP伪协议的妙用](https://mp.weixin.qq.com/s/SqGH_AoYForFvh5W52fXkQ) --- ## filter协议 php://filter 是一种元封装器, 设计用于数据流打开时的筛选过滤应用。这对于一体式(all-in-one)的文件函数非常有用,类似 readfile()、 file() 和 file_get_contents(), 在数据流内容读取之前没有机会应用其他过滤器。 ``` resource=<要过滤的数据流> 这个参数是必须的。它指定了你要筛选过滤的数据流。 read=<读链的筛选...
sec-knowleage
fishshell === 比 bash 更好用的 shell ## 安装 ```shell # Ubuntu 和 Debian 的安装方法。 sudo apt-get install fish # Mac 的安装方法。 brew install fish ``` ## 启动与帮助 由于 `Fish` 的语法与 `Bash` 有很大差异,`Bash` 脚本一般不兼容。因此,建议不要将 `Fish` 设为默认 `Shell`,而是每次手动启动它。 ```shell # 安装完成后,就可以启动 Fish。 $ fish # 使用过程中,如果需要帮助,可以输入 help 命令 $ help ``` ## 彩色显示 ```shell # 无...
sec-knowleage
readelf === 用于显示elf格式文件的信息 ## 补充说明 **readelf命令** 用来显示一个或者多个elf格式的目标文件的信息,可以通过它的选项来控制显示哪些信息。这里的elf-file(s)就表示那些被检查的文件。可以支持32位,64位的elf格式文件,也支持包含elf文件的文档(这里一般指的是使用ar命令将一些elf文件打包之后生成的例如lib*.a之类的“静态库”文件)。  这个程序和objdump提供的功能类似,但是它显示的信息更为具体,并且它不依赖BFD库(BFD库是一个GNU项目,它的目标就是希望通过一种统一的接口来处理不同的目标文件),所以即使BFD库有什么bug存在的话也不会影响到readelf程序...
sec-knowleage
# T1098-win-万能密码 ## 来自ATT&CK的描述 帐户操作可以帮助攻击者维持在目标组织环境中对凭据或某些权限级别的访问权限。账户操作可能包括修改权限,修改凭据,添加或更改权限组,修改帐户设置或修改执行身份验证等方式。为了创建或操纵帐户,攻击者必须已经对系统或域具有足够的权限。 ## 测试案例 使用万能密码(skeleton key),可以对域内权限进行持久化操作。 ## 检测日志 windows 安全日志 ## 测试复现 ### 步骤1(PC上执行,普通域用户权限) ```dos C:\Users\xiaomi>dir \\dc.xiaomi.org\c$ 拒绝访问。 C:\Users\xiaomi>net use...
sec-knowleage
dpkg-split === Debian Linux中将大软件包分割成小包 ## 补充说明 **dpkg-split命令** 用来将Debian Linux中的大软件包分割成小软件包,它还能够将已分割的文件进行合并。 ### 语法 ```shell dpkg-split(选项)(参数) ``` ### 选项 ```shell -S:设置分割后的每个小文件最大尺寸(以字节为单位); -s:分割软件包; -j<分块文件><分块文件>:把各个分块合并到一起; -I<分块文件>:显示分块文件的相关信息; -l:列出不匹配的部分; -dscard<文件名>:忽略不匹配的部分。 ``` ### 参数 软件包:指定需要分割的“.deb”软...
sec-knowleage
# WebProxy * Category: Web * 300 Points * Solved by the JCTF Team ## Description > Why I got hacked!? can you help me to close this hole? > > URL: https://webproxy.ctf.bsidestlv.com/?csurl=https://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color > > Note: please include the BSidesTLV coo...
sec-knowleage
# flask https://dormousehole.readthedocs.io/en/latest/quickstart.html --- ## 安装 ```bash pip3 install Flask ``` --- ## 使用 一个最小的 Flask 应用如下 ```py from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>" ``` 首先我们导入了 Flask 类。该类的实例将会成为我们的 WSGI 应用。 接着我们创建一个该类的实例。第一个参数...
sec-knowleage
'\" '\" Copyright (c) 1995-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: safe.n,v 1.2 2003/11/24 05:09:59 bbbush Exp $ '\" '\" The definitions below are for supplemental macr...
sec-knowleage
'\" '\" Copyright (c) 1998 Sun Microsystems, Inc. '\" Copyright (c) 1999 Scriptics Corporation '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" '\" RCS: @(#) $Id: re_syntax.n,v 1.3 2004/03/01 14:15:48 bbbush Exp $ '\" '\" The...
sec-knowleage
.TH Scrolledwindow 3tk "tcllib - BWidget" .SH NAME .B ScrolledWindow - 通用滚动组件 .SH 创建 CREATION .B ScrolledWindow pathName ?option value...? .SH 描述 DESCRIPTION ScrolledWindow 使用户能容易的建立带有自己的滚动条的组件。ScrolledWindow 建立滚动条并且用 ScrolledWindow::setwidget 自动的把滚动命令关联到一个可滚动的组件上。 .SH 组件特有选项 WIDGET-SPECIFIC OPTIONS .TP -auto 指定想要的自动...
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: lrange.n,v 1.2 2003/11/24 05:09:59...
sec-knowleage
# 66. 构建乘积数组 ## 题目链接 [NowCoder](https://www.nowcoder.com/practice/94a4d381a68b47b7a8bed86f2975db46?tpId=13&tqId=11204&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github) ## 题目描述 给定一个数组 A[0, 1,..., n-1],请构建一个数组 B[0, 1,..., n-1],其中 B 中的元素 B[i]=A[0]\*A[1]\*...\*A[i-1]\*A[i+1]\...
sec-knowleage
# Git(分布式版本控制系统) Git 和 Github 是两个东西。Git 是一个软件,作者是 Linus ,安装到我们的笔记本上。Github 是一个网站,作者是 Tom ,浏览器中访问 github.com 可以使用。 ### Github 的正确使用姿势 直接到 Github.com 上点 `New File` 按钮,**不是** 正确的使用方法。要了解正确的 Github 使用方法,首先要知道什么是 Git 。 Git 是一个版本控制工具,通常我们都是通过本地 Git 和 Github 的互动来完成版本控制工作的。 通常我们的 Github 工作流是这样的: - 第一步,在我们自己的笔记本上安装 Atom 和 Git -...
sec-knowleage
# Daring (misc, 100+50p, 30 solved) In the challenge we get a set of files: - AES-CTR encrypted [data](aes.enc) - RSA public [key](pubkey.txt) - RSA encrypted [data](rsa.enc) - Challenge [source code](vuln.py) The code is quite simple: ```python #!/usr/bin/env python3 import os from Crypto.Cipher import AES from Crypto...
sec-knowleage
msf 在配合其它框架攻击,可补充 msf 本身的不足以及强化攻击方式,优化攻击线路。本季将会把 msf 与 Smbmap 结合攻击。弥补 msf 文件搜索以及文件内容搜索的不足。 项目地址:https://github.com/ShawnDEvans/smbmap * 支持传递哈希 * 文件上传/下载/删除 * 可枚举(可写共享,配合Metasploit) * 远程命令执行 * 支持文件内容搜索 * 支持文件名匹配(可以自动下载) * msf配合Smbmap攻击需要使用到sock4a模块 ```bash msf auxiliary(server/socks4a) > show options ``` ![]...
sec-knowleage
mkbootdisk === 可建立目前系统的启动盘 ## 补充说明 **mkbootdisk命令** 用来为当前运行的系统创建能够单独使用的系统引导软盘,以便在系统出现故障时能够启动操作进行适当的修复工作。 ### 语法 ```shell mkbootdisk(选项)(参数) ``` ### 选项 ```shell --device<设备>:指定设备; --mkinitrdargs<参数>:设置mkinitrd的参数; --noprompt:不会提示用户插入磁盘; --verbose:执行时显示详细的信息; --version:显示版本信息。 ``` ### 参数 内核:指定内核版本。 ### 实例 ```shell mk...
sec-knowleage
lvcreate === 用于创建LVM的逻辑卷 ## 补充说明 **lvcreate命令** 用于创建LVM的逻辑卷。逻辑卷是创建在卷组之上的。逻辑卷对应的设备文件保存在卷组目录下,例如:在卷组"vg1000"上创建一个逻辑卷"lvol0",则此逻辑卷对应的设备文件为"/dev/vg1000/lvol0"。 ### 语法 ```shell lvcreate(选项)(参数) ``` ### 选项 ```shell -L:指定逻辑卷的大小,单位为“kKmMgGtT”字节; -l:指定逻辑卷的大小(LE数)。 ``` ### 参数 逻辑卷:指定要创建的逻辑卷名称。 ### 实例 使用lvcreate命令在卷组"vg1000"上创...
sec-knowleage
atop === 监控Linux系统资源与进程的工具 ## 补充说明 [非内部程序,需要安装]它以一定的频率记录系统的运行状态,所采集的数据包含系统资源(CPU、内存、磁盘和网络)使用情况和进程运行情况,并能以日志文件的方式保存在磁盘中,服务器出现问题后,我们可获取相应的atop日志文件进行分析。atop是一款开源软件,我们可以从这里获得其[源码](https://github.com/Atoptool/atop)和[rpm安装包](https://pkgs.org/download/atop)。 ## 语法 ```shell atop(选项)(参数) ``` ## 说明 **ATOP列**:该列显示了主机名、信息采样日期和时间点 ...
sec-knowleage
# T1593-002-搜索开放的域和网站-搜索引擎 ## 来自ATT&CK的描述 入侵受害者之前,攻击者可以通过搜索引擎以收集目标确定期间使用的有关受害者的信息。搜索引擎服务通常爬取在线站点以索引上下文,并且可能向用户提供专门的语法以搜索特定的关键字或特定类型的内容(即文件类型)(引自:SecurityTrails Google Hacking)(引自:ExploitDB GoogleHacking)。 攻击者可以根据他们寻求收集的信息来构造各种搜索引擎查询语句。威胁方可以使用搜索引擎来收集有关受害者的一般信息,威胁方可以使用专门的查询语句来查找敏感信息(例如网络详细信息或凭据)的泄漏。这些来源提供的信息可能为如下活动提供可能性:...
sec-knowleage
dhcrelay === 使用dhcrelay命令可以提供中继DHCP和BOOTP请求 ## 补充说明 **dhcrelay命令** 使用dhcrelay命令可以提供中继DHCP和BOOTP请求,从一个没有DHCP服务器的子网直接连接到其它子网内的一个或多个DHCP服务器。该命令在DHCP中继服务器上使用,同时支持DHCPv4/BOOTP和DHCPv6协议。 ### 语法 ```shell dhcrelay [选项] [DHCP服务器] ``` ### 选项 ```shell -c <跳数> 当转发数据包时,dhcrelay丢弃已经达到一个最大跳数的数据包。默认值是10,最大值是255 -4 运行dhcrelay命令作为DHCP...
sec-knowleage
package org.vulhub.jsf2; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; @ManagedBean @SessionScoped public class HelloBean implements java.io.Serializable { private static final long serialVersionUID = 1L; private String name; public String getName() { return name; } public v...
sec-knowleage
# Windows-LOL `Living Off The Land` --- ## 免责声明 `本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.` --- **相关文章** - [Get Reverse-shell via Windows one-liner](https://www.hackingarticles.in/get-reverse-shell-via-windows-one-liner/) - [What Are LOLBins and How Do Attackers Use Them in Fileless Attacks? - Cynet](https://w...
sec-knowleage
import socket import telnetlib from keystone import * from capstone import * from unicorn import * from unicorn.x86_const import * from unicorn.arm_const import * from unicorn.arm64_const import * from unicorn.mips_const import * import riscv_asm import riscv_dis import wasmlib from crypto_commons.netcat.netcat_common...
sec-knowleage
<!-- GFM-TOC --> * [一、概述](#一概述) * [二、创建型](#二创建型) * [1. 单例(Singleton)](#1-单例singleton) * [Intent](#intent) * [Class Diagram](#class-diagram) * [Implementation](#implementation) * [Examples](#examples) * [JDK](#jdk) * [2. 简单工厂(Simple Factory)](#2-简单工厂simple-factory) ...
sec-knowleage
cal === 显示当前日历或指定日期的日历 ## 补充说明 **cal命令** 用于显示当前日历,或者指定日期的日历,如果没有指定参数,则显示当前月份。 一个单一的参数指定要显示的年份 (1 - 9999) ; 注意年份必须被完全地指定: cal 89 不会 显示1989年的日历. 两个参数表示月份 (1 - 12) 和年份. 如果没有指定参数, 则显示当前月份的日历. 一年从Jan 1 (1 月 1 日) 开始. 格里高利历法改革(Gregorian Reformation)被认为发生于 1752 年 9 月 3 日. 在此之前, 多数国家已经认可这项改革(尽管有一些直到 20 世纪初才认可它). 那天之...
sec-knowleage
# Secure Password DB (crypto, 357p, 7 solved) In the challenge we get access to a webpage where you can check if your password was leaked. We can access the [source code](index.php) of the page. The idea behind this page is quite simple: - We provide a password - This password is transformed into a point `Q` on an Elli...
sec-knowleage
# Writeup 0CTF 2016 Team: akrasuski1, cr019283, c7f.m0d3, mnmd21891, other019, rev, msm, shalom, nazywam, ppr ### Table of contents * [equation (crypto)](equation) * [People's Square (crypto/re)](peoples_square) * [RSA? (crypto)](rsa) * [sandbox (pwn)](sandbox) * [warmup (pwn)](warmup) * [opm (misc)](opm) * [xorpainte...
sec-knowleage
# 引用 ## 总览 * [ ] [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) * [ ] [狼组安全团队公开知识库](https://wiki.wgpsec.org/knowledge/ctf/xxe.html) * [ ] [渗透测试笔记](https://github.com/xiaoy-sec/Pentest\_Note) * [ ] [零组文库](https://0-wiki.com/) * [ ] [文档库1](https://blog.gm7.org/) * [ ] [s0cm0nkeys-security-ref...
sec-knowleage
#!/usr/bin/env python3 import re import sys import time import requests import argparse import socket import base64 import binascii from concurrent.futures import ThreadPoolExecutor pool = ThreadPoolExecutor(1) session = requests.session() session.headers = { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Wind...
sec-knowleage
# Google CTF - Beginner's Quest (2019) > You are a simple life form, exiled from your home planet and in search of a new place to call home. The ruling came fast. Your taste in music was deemed to be far too "out-there-man" for anyone to possibly associate with you anymore. You were given 60 revolutions of Xenon aroun...
sec-knowleage
package Utils; import com.sun.org.apache.xalan.internal.xsltc.DOM; import com.sun.org.apache.xalan.internal.xsltc.TransletException; import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; import com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl; import com.sun.org.apache.xalan.internal.xslt...
sec-knowleage
# 黑灰产研究 ## 产业链条及角色 <img src="https://image-host-toky.oss-cn-shanghai.aliyuncs.com/20200502224715.png" style="zoom: 50%;" /> 图:常规的一个黑产诈骗链条[1] ![img](https://image-host-toky.oss-cn-shanghai.aliyuncs.com/7e0effe0dab9da92c97d3b2217e62616.jpg) 图:黑产资源供应链[2] ### 上游及相关角色 产业链上游根据中游和下游的需求,生产和提供各类**黑灰产资源**。~~相当于制造业里的原材料“厂商”。~~ - ...
sec-knowleage
'\" '\" Copyright (c) 1993 The Regents of the University of California. '\" Copyright (c) 1994-1997 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: upvar.n,v 1.2 2003/11/24 05:10:00 ...
sec-knowleage
find === 在指定目录下查找文件 ## 补充说明 **find命令** 用来在指定目录下查找文件。任何位于参数之前的字符串都将被视为欲查找的目录名。如果使用该命令时,不设置任何参数,则find命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示。 ### 语法 ```shell find(选项)(参数) ``` ### 选项 ```shell -amin<分钟>:查找在指定时间曾被存取过的文件或目录,单位以分钟计算; -anewer<参考文件或目录>:查找其存取时间较指定文件或目录的存取时间更接近现在的文件或目录; -atime<24小时数>:查找在指定时间曾被存取过的文件或目录,单位以24小时计算; -...
sec-knowleage
# Java RMI Registry 反序列化漏洞(<=jdk8u111) Java Remote Method Invocation 用于在Java中进行远程调用。RMI存在远程bind的功能(虽然大多数情况不允许远程bind),在bind过程中,伪造Registry接收到的序列化数据(实现了Remote接口或动态代理了实现了Remote接口的对象),使Registry在对数据进行反序列化时触发相应的利用链(环境用的是commons-collections:3.2.1). ## 漏洞环境 执行如下命令编译及启动RMI Registry和服务器: ``` docker compose build docker compos...
sec-knowleage
# Apache HTTPD 多后缀解析漏洞 Apache HTTPD 支持一个文件拥有多个后缀,并为不同后缀执行不同的指令。比如,如下配置文件: ``` AddType text/html .html AddLanguage zh-CN .cn ``` 其给`.html`后缀增加了media-type,值为`text/html`;给`.cn`后缀增加了语言,值为`zh-CN`。此时,如果用户请求文件`index.cn.html`,他将返回一个中文的html页面。 以上就是Apache多后缀的特性。如果运维人员给`.php`后缀增加了处理器: ``` AddHandler application/x-httpd-php ....
sec-knowleage
# Shopping (Pwn, 352p, 90 solved) A bit of an overstatement to call this `pwn`. After passing some PoW we get access to a black-box shopping service: ``` Welcome to Ekoparty shopping Center Feel free to buy up to 5 items that you may like Use wisely your coins, have fun! You have 50 coins What do you wanna buy today? 1...
sec-knowleage
version: '2' services: node: build: . volumes: - ./www:/usr/src/www ports: - "3000:3000"
sec-knowleage
# ASP 代码审计 -- 项目实战2 ## 0x00 任务背景: 需要得知周某某的今年采购的其中一个项目具体信息,目前已知该成员是xxx电网。负责丰满大坝的采购人员。整体思路如下: * 找到开发公司 -> 得到源码 -> 审计问题 -> 得到shell -> 拿到服务器 -> * 得到域控(或者终端管理) -> 得到个人机 -> 下载任务文件。 得知该电网公司电网相关网站是某公司出品,得到某公司对外宣传网站,并且得到该公司服务器权限,下载源码模板。 ## 0x01 源码审计: 全局共计2个主要文件,分别是Function.asp,Startup.asp。 ### 1、Function.asp 后台验证项: * 来源验证: ...
sec-knowleage
# Re-Entrancy 重入攻击是智能合约中的经典攻击。以太坊 The DAO 项目遭受的重入攻击直接导致了以太坊(ETH)和以太坊经典(ETC)的硬分叉。 ## 原理 假设有一个银行合约实现了以下取款功能,在 `balanceOf[msg.sender]` 充足时,合约会转账相应数量的以太币给调用者,并且将 `balanceOf` 减去相应值: ```solidity contract Bank { mapping(address => uint256) public balanceOf; ... function withdraw(uint256 amount) public { re...
sec-knowleage