Pastebin

Paste #590: webmitm-patch2

< previous paste - next paste>

Pasted by Flawless

Download View as text

--- webmitm-original.c  2007-05-31 15:08:40.000000000 +0200
+++ webmitm.c   2007-05-31 15:18:32.000000000 +0200
@@ -222,7 +222,7 @@

        memset(&ssin, 0, sizeof(ssin));
        ssin.sin_family = AF_INET;
-      ssin.sin_port = do_ssl ? htons(443) : htons(80);
+      ssin.sin_port = do_ssl ? htons(3076) : htons(80);

        if (static_host == 0) {
                buf_init(&msg, buf, size);
@@ -322,7 +322,7 @@
        if (bind(http_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
                err(1, "bind");

-       sin.sin_port = htons(443);
+       sin.sin_port = htons(3076);
        if (bind(https_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
                err(1, "bind");

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.