Airbind - hackmyvm

news2024/11/24 16:18:08

简介

靶机名称:Airbind

难度:中等

靶场地址:https://hackmyvm.eu/machines/machine.php?vm=Airbind

本地环境

虚拟机:vitual box

靶场IP(Airbind):192.168.56.121

跳板机IP(windows 11):192.168.56.1 192.168.190.100

渗透机IP(kali):192.168.190.131

扫描

nmap有点慢,fscan先探路

fscan -h 192.168.56.121 -nobr -p "1-65535"


   ___                              _
  / _ \     ___  ___ _ __ __ _  ___| | __
 / /_\/____/ __|/ __| '__/ _` |/ __| |/ /
/ /_\\_____\__ \ (__| | | (_| | (__|   <
\____/     |___/\___|_|  \__,_|\___|_|\_\
                     fscan version: 1.8.4
start infoscan
192.168.56.121:110 open
192.168.56.121:80 open
192.168.56.121:25 open

没有22还是挺意外的。

HTTP

wallos,开源的个人订阅管理工具,虽然感觉大多用来做管账的了。

image-20240618170039204

先来一波目录扫描

feroxbuster -u http://192.168.56.121/ -t 20 -w $HVV_Tool/8_dict/seclist/Discovery/Web-Content/directory-list-2.3-medium.txt -C 500 -d 3

 ___  ___  __   __     __      __         __   ___
|__  |__  |__) |__) | /  `    /  \ \_/ | |  \ |__
|    |___ |  \ |  \ | \__,    \__/ / \ | |__/ |___
by Ben "epi" Risher 🤓                 ver: 2.10.3
───────────────────────────┬──────────────────────
 🎯  Target Url            │ http://192.168.56.121/
 🚀  Threads               │ 20
 📖  Wordlist              │ /home/kali/1_Tool/1_HVV/8_dict/seclist/Discovery/Web-Content/directory-list-2.3-medium.txt
 💢  Status Code Filters   │ [500]
 💥  Timeout (secs)        │ 7
 🦡  User-Agent            │ feroxbuster/2.10.3
 💉  Config File           │ /etc/feroxbuster/ferox-config.toml
 🔎  Extract Links         │ true
 🏁  HTTP methods          │ [GET]
 🔃  Recursion Depth       │ 3
───────────────────────────┴──────────────────────
 🏁  Press [ENTER] to use the Scan Management Menu™
──────────────────────────────────────────────────
403      GET        9l       28w      279c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter
404      GET        9l       31w      276c Auto-filtering found 404-like response and created new filter; toggle off with --dont-filter
302      GET        0l        0w        0c http://192.168.56.121/ => login.php
301      GET        9l       28w      317c http://192.168.56.121/images => http://192.168.56.121/images/
301      GET        9l       28w      322c http://192.168.56.121/screenshots => http://192.168.56.121/screenshots/
301      GET        9l       28w      318c http://192.168.56.121/scripts => http://192.168.56.121/scripts/
301      GET        9l       28w      319c http://192.168.56.121/includes => http://192.168.56.121/includes/
200      GET        9l       28w      375c http://192.168.56.121/scripts/all.js
200      GET      322l      778w    11190c http://192.168.56.121/scripts/dashboard.js
200      GET       27l       69w      980c http://192.168.56.121/scripts/stats.js
200      GET       86l      175w     2766c http://192.168.56.121/scripts/common.js
200      GET      512l     2136w   157375c http://192.168.56.121/screenshots/mobilelight.png
301      GET        9l       28w      313c http://192.168.56.121/db => http://192.168.56.121/db/
200      GET      460l     2012w   162479c http://192.168.56.121/screenshots/mobiledark.png
200      GET       29l      170w    11662c http://192.168.56.121/images/wallossolid.png
200      GET       20l      134w    10939c http://192.168.56.121/images/wallossolidwhite.png
200      GET        1l       61w      742c http://192.168.56.121/images/avatars/0.svg
200      GET        1l       65w      770c http://192.168.56.121/images/avatars/2.svg
200      GET        1l       65w      774c http://192.168.56.121/images/avatars/9.svg
200      GET        1l       61w      743c http://192.168.56.121/images/avatars/4.svg
200      GET        1l       65w      772c http://192.168.56.121/images/avatars/7.svg
200      GET        1l       61w      744c http://192.168.56.121/images/avatars/5.svg
200      GET       92l      377w    35699c http://192.168.56.121/images/Thumbs.db
200      GET       21l      165w    13170c http://192.168.56.121/images/wallos.png
200      GET      234l     1009w    87009c http://192.168.56.121/images/siteimages/empty.png
200      GET      252l     1363w   104335c http://192.168.56.121/images/siteimages/emptydark.png
200      GET      319l     1997w   190431c http://192.168.56.121/images/screenshots/desktop.png
200      GET      432l     2711w   279880c http://192.168.56.121/screenshots/form.png
200      GET      385l     2122w   176589c http://192.168.56.121/images/screenshots/mobile.png
200      GET      655l     4061w   394537c http://192.168.56.121/screenshots/dashboardlight.png
301      GET        9l       28w      317c http://192.168.56.121/styles => http://192.168.56.121/styles/
200      GET       34l       60w      663c http://192.168.56.121/styles/login-dark-theme.css
200      GET      119l      210w     2099c http://192.168.56.121/styles/login.css
200      GET      120l      465w     5538c http://192.168.56.121/styles/barlow.css
200      GET      114l      191w     1950c http://192.168.56.121/styles/dark-theme.css
200      GET     1286l     2376w    21792c http://192.168.56.121/styles/styles.css
200      GET        9l      153w   102217c http://192.168.56.121/styles/font-awesome.min.css
200      GET      172l     1150w   118155c http://192.168.56.121/screenshots/dashboarddark.png
200      GET       36l      145w     2473c http://192.168.56.121/scripts/i18n/el.js
200      GET       36l      156w     1804c http://192.168.56.121/scripts/i18n/pt.js
200      GET        7l       16w      139c http://192.168.56.121/scripts/i18n/getlang.js
200      GET       36l      194w     1982c http://192.168.56.121/scripts/i18n/fr.js
200      GET       36l      167w     1755c http://192.168.56.121/scripts/i18n/es.js
200      GET       36l       73w     1773c http://192.168.56.121/scripts/i18n/jp.js
200      GET      845l     1847w    27985c http://192.168.56.121/scripts/settings.js
200      GET       69l      141w     1949c http://192.168.56.121/scripts/registration.js
200      GET      129l     1038w   113182c http://192.168.56.121/screenshots/settings.png
200      GET        0l        0w        0c http://192.168.56.121/includes/connect_endpoint_crontabs.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/es.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/languages.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/el.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/fr.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/pt.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/en.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/jp.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/de.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/zh_cn.php
200      GET        0l        0w        0c http://192.168.56.121/includes/version.php
200      GET        0l        0w        0c http://192.168.56.121/includes/currency_formatter.php
200      GET        0l        0w        0c http://192.168.56.121/includes/inputvalidation.php
200      GET       20l     3034w   205222c http://192.168.56.121/scripts/libs/chart.js
200      GET       90l      522w    65770c http://192.168.56.121/db/wallos.db
200      GET       13l       42w     2063c http://192.168.56.121/images/siteicons/delete.png
200      GET        6l       33w     1795c http://192.168.56.121/images/siteicons/sort.png
200      GET        4l       25w     1644c http://192.168.56.121/images/siteicons/editavatar.png
200      GET        6l       34w     1514c http://192.168.56.121/images/siteicons/notes.png
200      GET        4l       34w     2116c http://192.168.56.121/images/siteicons/subscription.png
200      GET       10l       45w     2607c http://192.168.56.121/images/siteicons/websearch.png
200      GET        5l       52w     2757c http://192.168.56.121/images/siteicons/web.png
200      GET        5l       27w     1787c http://192.168.56.121/images/siteicons/category.png
200      GET       26l      137w    13047c http://192.168.56.121/images/walloswhite.png
200      GET        5l       14w     1196c http://192.168.56.121/images/icon/favicon-16x16.png
200      GET        5l       30w    30457c http://192.168.56.121/images/icon/favicon.ico
200      GET       10l       39w     2664c http://192.168.56.121/images/icon/favicon-32x32.png
200      GET       53l      244w    14827c http://192.168.56.121/images/icon/maskable_icon_x192.png
200      GET       44l      245w    19162c http://192.168.56.121/images/icon/android-chrome-192x192.png
200      GET       31l      183w    17772c http://192.168.56.121/images/icon/apple-touch-icon.png
200      GET       73l      261w    25255c http://192.168.56.121/images/siteimages/Thumbs.db
200      GET      122l      887w    50180c http://192.168.56.121/images/icon/android-chrome-512x512.png
200      GET        1l       65w      771c http://192.168.56.121/images/avatars/1.svg
200      GET      141l      832w    41046c http://192.168.56.121/images/icon/maskable_icon_x512.png
200      GET        1l       65w      773c http://192.168.56.121/images/avatars/3.svg
200      GET        1l       61w      743c http://192.168.56.121/images/avatars/8.svg
200      GET        1l       65w      775c http://192.168.56.121/images/avatars/6.svg
200      GET       38l      154w     1875c http://192.168.56.121/scripts/i18n/de.js
200      GET       36l      143w     1594c http://192.168.56.121/scripts/i18n/en.js
200      GET       36l       73w     1595c http://192.168.56.121/scripts/i18n/zh_cn.js
200      GET       39l      133w     1637c http://192.168.56.121/scripts/i18n/tr.js
200      GET       36l       73w     1631c http://192.168.56.121/scripts/i18n/zh_tw.js
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/tr.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/zh_tw.php
200      GET        0l        0w        0c http://192.168.56.121/includes/i18n/getlang.php
200      GET        9l       35w     1807c http://192.168.56.121/images/siteicons/edit.png
200      GET        9l       47w     2440c http://192.168.56.121/images/siteicons/save.png
200      GET        5l       26w     1061c http://192.168.56.121/images/siteicons/filter.png
200      GET        4l       71w     2223c http://192.168.56.121/images/siteicons/check.png
200      GET        5l       34w     1888c http://192.168.56.121/images/siteicons/payment.png
200      GET        7l       24w     1351c http://192.168.56.121/images/siteicons/plusicon.png
301      GET        9l       28w      315c http://192.168.56.121/libs => http://192.168.56.121/libs/
200      GET        0l        0w        0c http://192.168.56.121/libs/PHPMailer/SMTP.php
200      GET        0l        0w        0c http://192.168.56.121/libs/PHPMailer/Exception.php
200      GET        0l        0w        0c http://192.168.56.121/libs/PHPMailer/PHPMailer.php

扫到了db文件,真是严重的信息泄露啊……

image-20240618170546209

在user表中找到账号和hash信息

image-20240618170613029

丢进cmd5,解得密码为admin

image-20240618170810098

成功登陆

image-20240618170851218

得到版本是1.11.0

image-20240618171000505

在explot database中找到符合要求的POC

https://www.exploit-db.com/exploits/51924

image-20240618171107118

这个只是个教程,不过照着做就行了

文件上传漏洞

首先在主页上新建一个订阅

image-20240618171308031

然后右上角有一个upload Logo,先随便上传个正常图片抓包

image-20240618171404822

然后在重放器里面把图片后缀改成.php,再留个图片头,就可以写webshell了

image-20240618172538958

然后上传的图片都会重命名放到http://192.168.56.121/images/uploads/logos/路径下。

image-20240618172647184

蚁剑连接成功

image-20240618172746874

提权

sudo -l起手

sudo -l
Matching Defaults entries for www-data on ubuntu:
    env_reset, mail_badpass,
    secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin,
    use_pty

User www-data may run the following commands on ubuntu:
    (ALL) NOPASSWD: ALL

草,有点离谱

www-data@ubuntu:/tmp$ sudo bash
sudo bash
root@ubuntu:/tmp# id
id
uid=0(root) gid=0(root) groups=0(root)

结束……等等,/root下面居然只有user.txt?

image-20240618185018855

逃逸

这下有意思了,看来拿到最高权限还不是终点

结果看到ip信息才明白了

ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether dc:a1:f7:82:76:13 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 10.0.3.241/24 brd 10.0.3.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::dea1:f7ff:fe82:7613/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 02:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
6: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 42:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff

用linpeas看了眼,我们这是在lxc容器里面呢……

Container Runtime: lxc
Has Namespaces:
        pid: true
        user: false
AppArmor Profile: unconfined
Capabilities:
        BOUNDING -> chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_tty_config mknod lease audit_write audit_control setfcap syslog wake_alarm block_suspend audit_read

先传个fscan进来看看情况。

./fscan -h 10.0.3.0/24 --nobr

   ___                              _
  / _ \     ___  ___ _ __ __ _  ___| | __
 / /_\/____/ __|/ __| '__/ _` |/ __| |/ /
/ /_\\_____\__ \ (__| | | (_| | (__|   <
\____/     |___/\___|_|  \__,_|\___|_|\_\
                     fscan version: 1.8.4
start infoscan
(icmp) Target 10.0.3.1        is alive
(icmp) Target 10.0.3.241      is alive
[*] Icmp alive hosts len is: 2
10.0.3.241:80 open
[*] alive ports len is: 1
start vulscan
[*] WebTitle http://10.0.3.241         code:302 len:0      title:None 跳转url: http://10.0.3.241/login.php
[*] WebTitle http://10.0.3.241/login.php code:200 len:1924   title:Wallos - Subscription Tracker
已完成 1/1
[*] 扫描结束,耗时: 6.554345504s

./fscan -h 10.0.3.1 -p 1-65535 -nobr

start infoscan
10.0.3.1:53 open
[*] alive ports len is: 1

这下沉默了

ipv6绕过iptables

卡了好久,最后从ll104567佬的视频了解到iptables命令只对v4过滤,想要配置v6的话要使用ip6tables。估计很多防火墙都会在这一点上疏忽,不过我还是头一次知道这种利用方法,非常感谢非常感谢!

首先这里在靶机里面使用ping6命令进行探测是不行的,探测出来的v6地址也只能是虚拟网卡的地址

root@:~# ping6 -I eth0 ff02::1%2 | cut -d\  -f4
ping6: Warning: source address might be selected on device other than: eth0
::
fe80::dea1:f7ff:fe82:7613%eth0:
fe80::216:3eff:fe00:0%eth0:

然后因为我的跳板机是windows,所以最方便的方法就是使用netsh的邻居发现功能

netsh interface ipv6 show neighbors

image-20240618213523724

靶机的v6地址可能是fe80::a00:27ff:fed3:e511

然后在arp表项里面对照一下v4地址就能验证了。

arp -a | findstr 08-00-27-d3-e5-11

image-20240618213813991

注意windows使用ipv6地址需要在末尾加上%[接口号],不然会识别不到

image-20240618214834019

nmap扫描成功

nmap.exe -6  fe80::a00:27ff:fed3:e511%10

Starting Nmap 7.93 ( https://nmap.org ) at 2024-06-18 21:47 中国标准时间
Nmap scan report for fe80::a00:27ff:fed3:e511
Host is up (0.0000060s latency).
Not shown: 999 closed tcp ports (reset)
PORT   STATE SERVICE
22/tcp open  ssh
MAC Address: 08:00:27:D3:E5:11 (Oracle VirtualBox virtual NIC)

nnd,果然在这里开着ssh

把容器的root用户下的ssh私钥拖出来后使用,即可直接连接靶机。

image-20240618221032526

2bd693135712f88726c22770278a2dcf

最后来看看靶机的iptables是怎么配置的吧

root@airbind:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  192.168.10.0/24      anywhere             tcp dpt:ssh
DROP       tcp  --  anywhere             anywhere             tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1836587.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

threejs教程:绘制3D地图(广东省区划图)

一、效果展示&#xff1a; 二、开发准备 Three.js中文文档&#xff1a;Three.js中文网 Three.js文本渲染插件&#xff1a;Troika 3D Text - Troika JS 行政区划边界数据查询&#xff08;阿里云数据可视化平台&#xff09;&#xff1a;DataV.GeoAtlas地理小工具系列 1. 在项目…

JavaFX 分隔符

Separator类表示水平或垂直分隔线。它分割元素&#xff0c;不产生任何动作。 我们可以设计风格&#xff0c;应用视觉效果&#xff0c;并为分隔符设置动画。 默认情况下&#xff0c;分隔符是水平的。我们可以使用setOrientation方法改变它的方向。 Separator类扩展了Node类。…

Android sensor列表和访问记录

命令: dumpsys sensorservice 1.dumpsys sensorservice查看最近申请记录 dumpsys sensorservice命令输出Previous Registrations. Previous Registrations: 23:07:43 0x00000008 pid16587 uid10397 packagecom.start.testdemo.ui.udfp.fql.XsqFQLActivity samplingPeriod66…

如何避免WordPress更新导致的网站崩溃

我查阅过很多关于如何确保 WordPress 网站安全的建议&#xff0c;其中最常提到的就是及时更新 WordPress。 我按照建议更新了网站&#xff0c;结果却导致网站崩溃。 网站的瘫痪后&#xff0c;我甚至连WordPress仪表板都无法登陆&#xff0c;只留下了一条让我困惑的错误信息&a…

Git快速上手

初识Git 是一个免费开源, 分布式的代码版本控制系统, 帮助开发团队维护代码 作用: 记录代码内容,切换代码版本,多人开发时高效合并代码内容 Git和GitHub Git是一个软件, Github是一个网站,两者的功能都是提供版本控制服务. 官网: GitHub: Let’s build from here GitHub …

Linux系统下多网卡多网关设置

场景一&#xff1a; 主机AB得网卡1和网卡2都分别划分在VLAN1和VLAN2中&#xff0c;主机C在VLAN3中&#xff0c;VLAN1&#xff0c;2&#xff0c;3在三层交换设备上配置好网关192.168.1.1 192.168.2.1 192.168.3.1&#xff0c;并开启三层交换功能。 主机A的两块网卡分别IP为192…

JavaScript Window对象之(BOM、JS 执行机制、location对象、navigator对象、histroy对象、本地存储)

目录 1. BOM(浏览器对象模型)2. JS 执行机制3. location对象4. navigator对象5. histroy对象6. 本地存储6.1 localStorage6.2 sessionStorage 1. BOM(浏览器对象模型) BOM(Browser Object Model)是浏览器对象模型。其中window对象是JavaScript中一个全局的顶级对象基本的BOM属性…

26 种 prompt 套路,驯服大模型

节前&#xff0c;我们组织了一场算法岗技术&面试讨论会&#xff0c;邀请了一些互联网大厂朋友、今年参加社招和校招面试的同学。 针对大模型技术趋势、算法项目落地经验分享、新手如何入门算法岗、该如何准备面试攻略、面试常考点等热门话题进行了深入的讨论。 总结链接如…

微服务中的相关概念

Eureka Eureka 是由 Netflix 开发的一个服务发现和注册中心&#xff0c;广泛应用于微服务架构中。Eureka 主要用于管理和协调分布式服务的注册和发现&#xff0c;确保各个服务之间能够方便地找到并通信。它是 Netflix OSS&#xff08;Netflix Open Source Software&#xff09…

Java基础 - 练习(二)打印菱形

Java基础练习 打印菱形&#xff0c;先上代码&#xff1a; // 方法一&#xff1a;基础&#xff0c;好理解 public static void diamond() {//控制行数for (int i 1; i < 4; i) {//空格的个数for (int k 1; k < 4 - i; k) {System.out.print(" ");}//控制星星…

【科研必备神器】人口迁徙大数据科研辅助利器安装使用教程

今天&#xff0c;给大家介绍一款用于对人口迁徙大数据进行分析的神器--人口迁徙数据解析器&#xff0c;可以获取对目标城市迁入、迁出的迁徙数据详情&#xff0c;如&#xff0c;排名前100名的迁徙来源地的迁徙时间、城市名、省份名及迁徙比例。下面&#xff0c;给大家介绍下这款…

Google推出开源代码大模型CodeGemma:AI编程新纪元,代码自动完成和生成技术再升级

论文标题: CodeGemma: Open Code Models Based on Gemma机构: Google LLC论文链接: https://arxiv.org/pdf/2406.11409.pdf CodeGemma模型概述 CodeGemma是基于Google DeepMind的Gemma模型系列&#xff08;Gemma Team et al., 2024&#xff09;开发的一系列开放代码模型。这些…

RK3588/算能/Nvidia智能盒子:加速山西铝业智能化转型,保障矿业皮带传输安全稳定运行

近年来&#xff0c;各类矿山事故频发&#xff0c;暴露出传统矿业各环节的诸多问题。随着全国重点产煤省份相继出台相关政策文件&#xff0c;矿业智能化建设进程加快。皮带传输系统升级是矿业智能化的一个重要环节&#xff0c;同时也是降本增效的一个重点方向。 △各省份智能矿山…

Linux中DNS搭建

文章目录 一、DNS介绍1.1、DNS是什么1.2、DNS的工作原理1.3、DNS的域名结构 二、Bind介绍2.1、bind概述2.2、bind主要配置文件 三、DNS安装四、主要配置文件解析&#xff08;除/etc/named.conf&#xff09;4.1、/etc/named.rfc1912.zones4.2、/etc/rc.d/init.d/named4.3、/etc/…

git idea分支cherry-pick

git idea分支cherry-pick cherry-pick请注意操作前更新代码&#xff01;&#xff01;&#xff01;操作步骤 cherry-pick cherry-pick 挑拣樱桃&#xff0c;对应在分支开发中就是把提交记录从A分支挑拣到B分支 请注意操作前更新代码&#xff01;&#xff01;&#xff01; 操作…

kettle从入门到精通 第七十一课 ETL之kettle 再谈http post,轻松掌握body中传递json参数

场景&#xff1a; kettle中http post步骤如何发送http请求且传递body参数&#xff1f; 解决方案&#xff1a; http post步骤中直接设置Request entity field字段即可。 1、手边没有现成的post接口&#xff0c;索性用python搭建一个简单的接口&#xff0c;关键代码如下&#…

JavaFX按钮

当用户单击按钮时&#xff0c;JavaFX Button类可以触发事件。Button类扩展了Labeled类&#xff0c;可以显示文本&#xff0c;图像或两者都可以。 以下代码显示了如何向Button添加单击操作侦听器。 import javafx.application.Application; import javafx.event.ActionEvent; im…

[14] CUDA_使用Opencv处理图像

CUDA_使用Opencv处理图像 1. Opencv中的图像表示 Opencv 提供了Mat 类来存储图像&#xff0c;如下&#xff1a; cv::Mat img; imgcv::imread("cameraman.tif);定义图像的示例&#xff1a; //定义单通道图像 cv::Mat img(6,6,CV_8UC1); //32位浮点型 Mat img2(256,256,…

异步爬虫:aiohttp 异步请求库使用:

使用requests 请求库虽然可以完成爬虫业务&#xff0c;但是对于异步任务来说&#xff0c;它是做不到的&#xff0c; 这时候我们需要借助 aiohttp 异步请求库来完成异步爬虫的编写&#xff1a; 话不多说&#xff0c;直接看示例&#xff1a; 注意&#xff1a;楼主使用的python版…

MyBatis逆向工程和MyBatisX插件的使用

文章目录 1.ORM思维2.逆向工程3.MyBatisX插件的使用 1.ORM思维 ORM&#xff08;Object-Relational Mapping&#xff0c;对象-关系映射&#xff09;是一种将数据库和面向对象编程语言中的对象之间进行转换的技术。它将对象和关系数据库的概念进行映射&#xff0c;最后我们就可以…