{"id":13779566,"url":"https://github.com/interference-security/DVWS","last_synced_at":"2025-05-11T13:30:55.418Z","repository":{"id":69708144,"uuid":"78287528","full_name":"interference-security/DVWS","owner":"interference-security","description":"OWSAP Damn Vulnerable Web Sockets (DVWS) is a vulnerable web application which works on web sockets for client-server communication.","archived":false,"fork":false,"pushed_at":"2024-06-12T19:24:27.000Z","size":991,"stargazers_count":330,"open_issues_count":3,"forks_count":69,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-06-30T04:13:32.453Z","etag":null,"topics":["mysql","owasp","php","ratchet","vulnerabilities","websockets"],"latest_commit_sha":null,"homepage":"https://www.owasp.org/index.php/OWASP_Damn_Vulnerable_Web_Sockets_(DVWS)","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interference-security.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-07T15:43:34.000Z","updated_at":"2024-06-27T11:49:21.000Z","dependencies_parsed_at":"2023-05-09T16:53:06.201Z","dependency_job_id":null,"html_url":"https://github.com/interference-security/DVWS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interference-security%2FDVWS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interference-security%2FDVWS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interference-security%2FDVWS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interference-security%2FDVWS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interference-security","download_url":"https://codeload.github.com/interference-security/DVWS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213837759,"owners_count":15645750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","owasp","php","ratchet","vulnerabilities","websockets"],"created_at":"2024-08-03T18:01:06.517Z","updated_at":"2024-11-17T15:30:33.820Z","avatar_url":"https://github.com/interference-security.png","language":"PHP","funding_links":[],"categories":["Support","Downloadable Applications","\u003ca name=\"websocket_security_tools\"\u003e\u003c/a\u003eWebSocket Security Tools"],"sub_categories":["Playgrounds"],"readme":"# OWASP Damn Vulnerable Web Sockets (DVWS)\nOWASP Damn Vulnerable Web Sockets (DVWS) is a vulnerable web application which works on web sockets for client-server communication. The flow of the application is similar to [DVWA](https://github.com/ethicalhack3r/DVWA). You will find more vulnerabilities than the ones listed in the application.\n\nhttps://owasp.org/www-project-damn-vulnerable-web-sockets/\n\n## Requirements\nIn the ```hosts``` file of your attacker machine create an entry for ```dvws.local``` to point at the IP address hosting the DVWS application.\n\nLocation of ```hosts``` file:\n\nWindows: ```C:\\windows\\System32\\drivers\\etc\\hosts```\n\nLinux: ```/etc/hosts```\n\nSample entry for ```hosts``` file:\n```\n192.168.100.199         dvws.local\n```\n\nThe application requires the following:\n\nApache + PHP + MySQL\n\nPHP with MySQLi support\n\n[Ratchet](https://github.com/ratchetphp/Ratchet)\n\n[ReactPHP-MySQL](https://github.com/bixuehujin/reactphp-mysql/)\n\nInstall \"Ratchet\" and \"ReactPHP-MySQL\" using composer:\n```\ngit clone https://github.com/interference-security/DVWS\ncd DVWS\ncomposer install\n```\n\n## Docker Installation\n```bash\ndocker build -t dvws .\n\n# For connecting with existing database\ndocker run -it \\\n  --name DVWS \\\n  -p 8080:8080 -p 8888:8888 \\\n  -e \"DB_HOST=db\" \\\n  -e \"DB_USER=dvws\" \\\n  -e \"DB_PASSWORD=DVWS\" \\\n  -e \"DB_DATABASE=dvws\" \\\n  --restart always \\\n  dvws\n\n# or use docker-compose\ndocker-compose up\n```\n\nVisit http://localhost:8080/setup.php for getting started\n\n## Setting up DVWS\nSet the MySQL hostname, username, password and an existing database name in the ```includes/connect-db.php``` file then go to Setup to finish setting up DVWS.\n\n## Running DVWS\nOn the host running this application, run the following command from DVWS directory: ```php ws-socket.php --heartbeat-interval \u003cseconds\u003e```\n\nExample: ```php ws-socket.php --heartbeat-interval 10```\n\n## Important Note\nDVWS has been developed with limited knowledge of Web Sockets. Feel free to contribute and enhance this project.\n\n## Screenshot\n![image](https://user-images.githubusercontent.com/5358495/119394820-a725e580-bca0-11eb-9cc7-d31fc30572ce.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterference-security%2FDVWS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterference-security%2FDVWS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterference-security%2FDVWS/lists"}