Skip to content

Commit

Permalink
reaver-wps-fork-t6x: adding blank -C parameter, issue #139 while upst…
Browse files Browse the repository at this point in the history
…ream is looking at it. Hi, https://github.com/kcdtv you arrogant bastard
  • Loading branch information
blshkv committed Dec 21, 2016
1 parent b8be56f commit e59ac0d
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 885 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 33 additions & 0 deletions net-wireless/reaver-wps-fork-t6x/files/0006-announce-fcs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
--- src/wpsmon.c.orig 2016-12-21 07:56:51.000000000 +0800
+++ src/wpsmon.c 2016-12-21 08:01:59.583731228 +0800
@@ -94,10 +94,10 @@
int source = INTERFACE, ret_val = EXIT_FAILURE;
struct bpf_program bpf = { 0 };
char *out_file = NULL, *last_optarg = NULL, *target = NULL, *bssid = NULL;
- char *short_options = "i:c:n:o:b:5sfuCDhPga";
+ char *short_options = "i:c:n:o:b:5sfuCFDhPga";
struct option long_options[] = {
- { "get-chipset", no_argument, NULL, 'g' },
- { "output-piped", no_argument, NULL, 'P' },
+ { "get-chipset", no_argument, NULL, 'g' },
+ { "output-piped", no_argument, NULL, 'P' },
{ "bssid", required_argument, NULL, 'b' },
{ "interface", required_argument, NULL, 'i' },
{ "channel", required_argument, NULL, 'c' },
@@ -105,7 +105,8 @@
{ "probes", required_argument, NULL, 'n' },
{ "daemonize", no_argument, NULL, 'D' },
{ "file", no_argument, NULL, 'f' },
- { "announce-fcs", no_argument, NULL, 'C' }, //mod by flatr0ze
+ { 0, 0, NULL, 'C' },
+ { "announce-fcs", no_argument, NULL, 'F' }, //mod by flatr0ze
{ "5ghz", no_argument, NULL, '5' },
{ "scan", no_argument, NULL, 's' },
{ "survey", no_argument, NULL, 'u' },
@@ -164,6 +165,8 @@
mode = SURVEY;
break;
case 'C':
+ break;
+ case 'F':
set_validate_fcs(1); //mod by flatr0ze
break;
case 'D':
@@ -624,7 +624,7 @@
fprintf(stderr, "\t-o, --out-file=<file> Write data to file\n");
fprintf(stderr, "\t-n, --probes=<num> Maximum number of probes to send to each AP in scan mode [%d]\n", DEFAULT_MAX_NUM_PROBES);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ DEPEND="!net-wireless/reaver
dev-db/sqlite:3"
RDEPEND="${DEPEND}"

#S="${WORKDIR}/${P}/src"
ECONF_SOURCE="${S}/src"

#these patches need to be verified and pushed to upstream
src_prepare() {
# epatch "${FILESDIR}"/000[1-4]*.patch
#http://code.google.com/p/reaver-wps/issues/detail?id=420
# epatch "${FILESDIR}"/0005-soreau-show-status-r2.patch
#https://github.com/pentoo/pentoo-overlay/issues/139
epatch "${FILESDIR}"/0006-announce-fcs.patch
}
Expand Down

0 comments on commit e59ac0d

Please sign in to comment.