Windwos privilage escalation - Citrix Breakout

hi every one
I have a problem with creating an smb share on my attacking machine
when i try to type this commands i got error

htb-student@ubuntu:~/Tools$ smbserver.py -smb2support sharewood $(pwd)
Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation

Traceback (most recent call last):
  File "/home/htb-student/.local/bin/smbserver.py", line 71, in <module>
    server = smbserver.SimpleSMBServer(listenAddress=options.interface_address, listenPort=int(options.port))
  File "/home/htb-student/.local/pipx/venvs/impacket/lib/python3.8/site-packages/impacket/smbserver.py", line 4838, in __init__
    self.__server = SMBSERVER((listenAddress, listenPort), config_parser=self.__smbConfig)
  File "/home/htb-student/.local/pipx/venvs/impacket/lib/python3.8/site-packages/impacket/smbserver.py", line 3941, in __init__
    socketserver.TCPServer.__init__(self, server_address, handler_class)
  File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied
htb-student@ubuntu:~/Tools$ sudo smbserver.py -smb2support sharewood $(pwd)
[sudo] password for htb-student: 
sudo: smbserver.py: command not found

tried to restart the intense by nothing helped

never mind
switched to root user and used the same command

1 Like

dont u need a password to su root where did u get the password from

Since htb-student is a sudoer, all you need is htb-student’s password