Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #77963
    kareem zaky
    Participant

    i follow all steps in browser in browser attack , finally i got a blank page ,

    kindly check the attached screen shot

    Attachments:
    You must be logged in to view attached files.
    #77965
    kareem zaky
    Participant

    on on my machine i got this error

    └─# websockify –web /usr/share/novnc –target-config /home/tokens –cert /etc/letsencrypt/live/buildyourcareer.shop/fullchain.pem –key /etc/letsencrypt/live/buildyourcareer.shop/privkey.pem my_ip:443
    WebSocket server settings:
    – Listen on my_ip:443
    – Web server. Web root: /usr/share/novnc
    – SSL/TLS support
    – proxying from my_ip:443 to targets generated by TokenFile
    Syntax error in /home/tokens on line 1
    Syntax error in /home/tokens on line 2
    77.31.254.28: Token ‘trythis’ not found
    Syntax error in /home/tokens on line 1
    Syntax error in /home/tokens on line 2
    77.31.254.28: Token ‘trythis’ not found

    this is token file content

    trythis localhost:5901
    tryme localhost:5902

    #78225
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Make sure that all vnc servers are running properly. Also make sure to use the eth0 ip address in the websockify command not the public ip.

    Greetings!
    Diego

    #78226
    kareem zaky
    Participant

    All vnc running well , i already use etho ip in websokify command

    And got the same error

    #78516
    kareem zaky
    Participant

    any update ?

    #78807
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Once you start the VNC ervers run the command “ss -lntp” and share a screenshot here.
    Can you share a screenshot with the websockify command used and the result please?

    Thanks!
    Diego

    #78864
    kareem zaky
    Participant

    this is the result of the command

    sudo vncserver -geometry 1080×1920 -depth 32 -localhost no

    State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
    LISTEN 0 5 0.0.0.0:5902 0.0.0.0:* users:((“Xtigervnc”,pid=2947,fd=9))
    LISTEN 0 5 0.0.0.0:5903 0.0.0.0:* users:((“Xtigervnc”,pid=16927,fd=9))
    LISTEN 0 5 0.0.0.0:5901 0.0.0.0:* users:((“Xtigervnc”,pid=700,fd=9))
    LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:((“sshd”,pid=600,fd=3))
    LISTEN 0 5 [::]:5902 [::]:* users:((“Xtigervnc”,pid=2947,fd=10))
    LISTEN 0 5 [::]:5903 [::]:* users:((“Xtigervnc”,pid=16927,fd=10))
    LISTEN 0 5 [::]:5901 [::]:* users:((“Xtigervnc”,pid=700,fd=10))
    LISTEN 0 128 [::]:22 [::]:* users:((“sshd”,pid=600,fd=4))

    websockify command :

    websockify –web /usr/share/novnc –target-config /tokens –cert /etc/letsencrypt/live/mydomain.shop/fullchain.pem –key /etc/letsencrypt/live/mydomain.shop/privkey.pem my_cloud_machine_IP:443
    WebSocket server settings:
    – Listen on my_cloud_machine_IP:443
    – Web server. Web root: /usr/share/novnc
    – SSL/TLS support
    – proxying from my_cloud_machine_IP:443 to targets generated by TokenFile

    #78865
    kareem zaky
    Participant

    i got this error

    websockify –web /usr/share/novnc –target-config tokens –cert /etc/letsencrypt/live/buildyourcareer.shop/fullchain.pem –key /etc/letsencrypt/live/buildyourcareer.shop/privkey.pem 172.104.15.223:443
    WebSocket server settings:
    – Listen on 172.104.15.223:443
    – Web server. Web root: /usr/share/novnc
    – SSL/TLS support
    – proxying from 172.104.15.223:443 to targets generated by TokenFile
    Syntax error in /root/tokens on line 1
    Syntax error in /root/tokens on line 2
    170.133.124.37: Token ‘trythis’ not found
    Syntax error in /root/tokens on line 1
    Syntax error in /root/tokens on line 2
    170.133.124.37: Token ‘connect’ not found

    my token file

    connect localhost:5901
    gmail localhost:5902

    #79142
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Can you share the screenshot with the result of the command requested above?
    Also, it would be better to share screenshots as the copy/paste is not accurate. Share a screenshot with the contents of the token file as well.

    Greetings!
    Diego

    #79267
    kareem zaky
    Participant

    “ss -lntp” command result

    Attachments:
    You must be logged in to view attached files.
    #79271
    kareem zaky
    Participant

    token file content

    Attachments:
    You must be logged in to view attached files.
    #79281
    kareem zaky
    Participant

    websokify command

    Attachments:
    You must be logged in to view attached files.
    #79295
    kareem zaky
    Participant

    final error

    Attachments:
    You must be logged in to view attached files.
    #79445
    Diego PérezDiego Pérez
    Moderator

    Hi!
    So, are you getting that error message after trying to access the vnc server through the browser? If so, can you share the URL used to try to access it?

    Greetings!
    Diego

    #79536
    kareem zaky
    Participant
Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.