whileTrue: client_socket, client_address = server_socket.accept() print(f"Connection from {client_address} established.")
with client_socket: received_data = b'' whileTrue: data = client_socket.recv(1024) ifnot data: break received_data += data if received_data: withopen(filename, "wb") as f: f.write(received_data) print(f"[+] write to {filename}")
┌──(root㉿kali)-[/home/kali/Desktop/ivanti] └─# lvdisplay --- Logical volume --- LV Path /dev/groupA/home LV Name home VG Name groupA LV UUID wmdyWN-RgT0-T1Wg-B70u-2avE-Pm1q-gqEz4F LV Write Access read/write LV Creation host, time (none), 2025-02-23 05:47:53 -0500 LV Status available # open 0 LV Size <4.87 GiB Current LE 1246 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 --- Logical volume --- LV Path /dev/groupA/runtime LV Name runtime VG Name groupA LV UUID AV4oWq-pUun-0gIb-wyyk-c8TI-s6ml-2210pi LV Write Access read/write LV Creation host, time (none), 2025-02-23 05:48:05 -0500 LV Status available # open 0 LV Size <19.46 GiB Current LE 4981 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:1 --- Logical volume --- LV Path /dev/groupZ/home LV Name home VG Name groupZ LV UUID cOTBS1-oaYw-PlAt-puTS-Uvq5-6C91-pK6QHK LV Write Access read/write LV Creation host, time (none), 2024-10-07 06:47:49 -0400 LV Status available # open 0 LV Size 6.72 GiB Current LE 1721 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:2
┌──(root㉿kali)-[/home/kali/Desktop/ivanti] └─# fdisk -l Disk /dev/sda: 80.09 GiB, 86000000000 bytes, 167968750 sectors Disk model: VMware Virtual S Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x61f3767d
Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 167968749 167966702 80.1G 83 Linux
Disk /dev/nbd0: 80 GiB, 85899345920 bytes, 167772160 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type /dev/nbd0p1 16065 224909 208845 102M 83 Linux /dev/nbd0p2 224910 433754 208845 102M 83 Linux /dev/nbd0p3 449820 658664 208845 102M 83 Linux /dev/nbd0p4 674730 167766794 167092065 79.7G 85 Linux extended /dev/nbd0p5 674731 14779799 14105069 6.7G 83 Linux /dev/nbd0p6 14779801 30089744 15309944 7.3G 83 Linux /dev/nbd0p7 30089746 65802239 35712494 17G 83 Linux /dev/nbd0p8 65802241 81112184 15309944 7.3G 83 Linux /dev/nbd0p9 81112186 116824679 35712494 17G 83 Linux /dev/nbd0p10 116824681 132134624 15309944 7.3G 82 Linux swap / Solaris /dev/nbd0p11 132134626 167766794 35632169 17G 83 Linux
┌──(root㉿kali)-[/home/kali/Desktop/ivanti] └─# mount /dev/groupZ/home /mnt/ivanti mount: /mnt/ivanti: unknown filesystem type 'crypto_LUKS'. dmesg(1) may have more information after failed mount system call.