-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpcw
executable file
·474 lines (429 loc) · 22.5 KB
/
cpcw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
#!/usr/bin/perl
$|=1;
our $VERSION = '2.3.2';
use v5.12;
use utf8;
use autodie;
use Carp;
use File::Spec;
use FindBin qw/$Bin/;
use lib File::Spec->catfile($Bin, 'lib'), $Bin;
binmode(STDOUT, ":utf8");
#-----------------------------------------------------------------------------
use Coro;
use AnyEvent;
use Coro::Timer;
use Getopt::Long qw/:config bundling/;
use POSIX qw/strftime/;
use List::Util qw/reduce/;
use File::Basename;
#-----------------------------------------------------------------------------
use PCW::Core::Utils qw/get_proxylist readfile/;
use PCW::Core::Log;
#-----------------------------------------------------------------------------
# Global variables
#-----------------------------------------------------------------------------
our %mode_config;
our $chan_config;
our $log_settings;
my @proxies; #-- list of proxies
my @agents; #-- list of user-agents
my $engine; #-- PCW::Engine::* object
my $logging; #-- PCW::Core::Log object
#-----------------------------------------------------------------------------
# Config
#-----------------------------------------------------------------------------
my %cnf = (
chan => '',
mode => '',
verbose => 0,
#useragents => File::Spec->catfile($Bin, 'UserAgents'),
useragents => File::Spec->catfile('.', 'UserAgents'),
#proxy_file => File::Spec->catfile($Bin, 'proxy', 'no'),
proxy_file => File::Spec->catfile('.', 'proxy', 'no'),
proxy_type => 'http',
#common_config => File::Spec->catfile($Bin, 'config.pl'), #-- common config path
common_config => File::Spec->catfile('.', 'config.pl'), #-- common config path
mode_config => '', #-- mode config path
loglevel => 1,
logfile => '',
lognocolor => undef,
);
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
sub parse_args()
{
my $help = 0;
my $desu = 0;
my $result = GetOptions(
'chan=s' => \$cnf{chan},
'mode=s' => \$cnf{mode},
'proxy=s' => \$cnf{proxy_file},
'ua=s' => \$cnf{useragents},
'cconfig=s' => \$cnf{common_config},
'mconfig=s' => \$cnf{mode_config},
'loglevel=i' => \$cnf{loglevel},
'logfile=s' => \$cnf{logfile},
'lognocolor' => \$cnf{lognocolor},
'verbose' => \$cnf{verbose},
'help|?' => \$help,
'desu' => \$desu,
);
if ($desu)
{
desu();
exit 1;
}
if ($help || !($cnf{mode} && $cnf{chan}))
{
usage();
exit 1;
}
#$cnf{mode_config} = File::Spec->catfile($Bin, 'configs', "$cnf{mode}.pl")
$cnf{mode_config} = File::Spec->catfile('.', 'configs', "$cnf{mode}.pl")
unless $cnf{mode_config};
}
#-----------------------------------------------------------------------------
# Config checking
#-----------------------------------------------------------------------------
sub check_chan_config()
{
for ( qw/post delete page zero_page thread/ )
{
Carp::croak("Chan config error: Option urls => '$_' must be specified at chans/$cnf{chan}.pl")
unless ($chan_config->{urls}{$_});
} #--------------------------------------------------------------------------
for ( qw/engine captcha_extension fields/ )
{
Carp::croak("Chan congig error: Option '$_' must be specified at chans/$cnf{chan}.pl")
unless ($chan_config->{$_});
} #--------------------------------------------------------------------------
Carp::croak("Chan config error: HOST must be specified at chans/$cnf{chan}.pl")
unless ($chan_config->{headers}{default}{Host});
}
sub check_user_error()
{
Carp::croak("Chan config '$cnf{chan}' does not exist")
#unless($cnf{chan} || -e File::Spec->catfile($Bin, 'chans', "$cnf{chan}.pl"));
unless($cnf{chan} || -e File::Spec->catfile('.', 'chans', "$cnf{chan}.pl"));
Carp::croak("Common config '$cnf{common_config}' does not exist")
unless($cnf{common_config} || -e $cnf{common_config});
my $modes_list = join('|', map { m|/(\w+)\.pm|; $1 } glob("PCW/Modes/*.pm") );
Carp::croak("Mode '$cnf{mode}' does not exist")
unless($cnf{mode} =~ /$modes_list/i);
Carp::croak("Mode '$cnf{mode}' config does not exist")
unless(-e $cnf{mode_config});
Carp::croak("Proxylist '$cnf{proxy_file}' does not exist")
unless($cnf{proxy_file} && (-e $cnf{proxy_file} || $cnf{proxy_file} =~ /http/) );
Carp::croak("Proxy type '$cnf{proxy_type}' is not specified")
unless($cnf{proxy_type});
Carp::croak("Useragents list '$cnf{useragents}' does not exist")
unless($cnf{useragents} && -e $cnf{useragents});
}
sub check_image_config()
{
my $img_mode = $mode_config{img_data}{mode} . '_img';
return if $img_mode =~ /no_img/;
unless ($mode_config{img_data}{mode} eq 'captcha' || $mode_config{img_data}{mode} eq 'rand')
{
Carp::croak "Image path not defined!" unless $mode_config{img_data}{path};
if (ref($mode_config{img_data}{path}) eq 'ARRAY')
{
for (@{ $mode_config{img_data}{path} })
{
Carp::croak "'$_' doesn't exist!" unless (-e $_);
Carp::croak "'$_' is empty!" if (-z $_);
}
}
else
{
Carp::croak $mode_config{img_data}{path} . " doesn't exist!"
unless (-e $mode_config{img_data}{path});
}
}
eval {
use PCW::Data::Images qw/make_pic/;
make_pic($engine, {test => 1}, $mode_config{img_data});
};
if ($@)
{
Carp::croak sprintf "Image mode '%s' doesn't exist!", $img_mode;
}
if ($mode_config{img_data}{max_size})
{
Carp::croak "The file size greaten then max size allowed!"
if int((-s $mode_config{img_data}{path})/1024) > $mode_config{img_data}{max_size};
}
if ($mode_config{img_data}{mode} eq 'dir' and !$mode_config{img_data}{types} || !(@{ $mode_config{img_data}{types} }))
{
Carp::croak "Allowed file types not specified!"
}
Carp::croak sprintf("Image altering method '%s' doesn't exist", $mode_config{img_data}{altering}{mode})
if $mode_config{img_data}{altering}{mode} !~ /randnums|randbytes|convert/;
}
sub check_video_config()
{
my $vid_mode = $mode_config{vid_data}{mode} . '_vid';
return if $vid_mode =~ /no_vid/;
eval {
use PCW::Data::Video qw/make_vid/;
make_vid($engine, {task => 1}, $mode_config{vid_data});
};
if ($@)
{
Carp::croak sprintf "Video mode '%s' doesn't exist!", $mode_config{vid_mode}{mode};
}
}
sub check_captcha_config()
{
my $captcha_mode = $mode_config{captcha_decode}{mode};
my $captcha_mode_path = File::Spec->catfile($Bin, 'OCR', "$captcha_mode.pm");
Carp::croak("Captcha decode method '$captcha_mode' does not exist at $captcha_mode_path")
unless (-e $captcha_mode_path);
}
#-----------------------------------------------------------------------------
# Info
#-----------------------------------------------------------------------------
sub show_info()
{
say "Perl Chan Wiper v$VERSION";
say "~" x 30;
say sprintf "Chan: %s %s", $cnf{chan}, ($chan_config->{description} ? "($chan_config->{description})" : "");
say "Engine: " . $chan_config->{engine};
say "Work mode: " . $cnf{mode};
say "Mode config: " . $cnf{mode_config};
say "Common config: " . $cnf{common_config};
say "Proxies loaded: " . scalar @proxies;
say "Browsers loaded: " . scalar @agents;
say "~" x 30;
say "Log level: ". $cnf{loglevel};
say "Log file: ". ($cnf{logfile} || "STDOUT");
say "Colored logging: ". ($cnf{lognocolor} ? 'no' : 'yes');
say "Verbose output: " . ($cnf{verbose} ? 'yes' : 'no');
say "~" x 30;
}
#-----------------------------------------------------------------------------
# Load
#-----------------------------------------------------------------------------
sub load_configs()
{
our ($img, $msg, $vid, $captcha_decode);
require $cnf{common_config} || die; #-- load $img, $msg, $vid, $captcha_decode
require $cnf{mode_config} || die; #-- load %mode_config
$mode_config{img_data} = $img;
$mode_config{msg_data} = $msg;
$mode_config{vid_data} = $vid;
$mode_config{captcha_decode} = $captcha_decode;
}
sub load_proxies()
{
@proxies = get_proxylist($cnf{proxy_file}, $cnf{proxy_type});
}
sub load_agents()
{
@agents = readfile($cnf{useragents});
}
sub load_chan()
{
#my $package = File::Spec->catfile($Bin, 'chans', "$cnf{chan}.pl");
my $package = File::Spec->catfile('.', 'chans', "$cnf{chan}.pl");
require "$package"; #-- load $chan_config
}
sub load_logging()
{
$logging = PCW::Core::Log->new( file => $cnf{logfile}, level => $cnf{loglevel}, colored => !$cnf{lognocolor}, settings => $log_settings );
}
sub load_engine()
{
my $package = "PCW::Engine::". $chan_config->{engine};
eval("use $package");
Carp::croak($@) if $@;
$engine = $package->new(%$chan_config, agents => \@agents, log => $logging, verbose => $cnf{verbose});
}
sub load_mode()
{
my $package = "PCW::Modes::$cnf{mode}";
eval("use $package");
Carp::croak($@) if $@;
return $package->new(engine => $engine,
proxies => \@proxies,
conf => \%mode_config,
log => $logging,
verbose => $cnf{verbose});
}
#-----------------------------------------------------------------------------
# Usage
#-----------------------------------------------------------------------------
sub desu()
{
print $_ while (<DATA>);
}
sub usage()
{
my @modes;
for my $path (glob "PCW/Modes/*.pm")
{
next if $path =~ /Base/;
my ($mode, undef, undef) = fileparse($path, '.pm');
push @modes, $mode;
}
my @chans;
for my $path (glob "chans/*.pl")
{
next if $path =~ /example/;
my ($chan, undef, undef) = fileparse($path, '.pl');
push @chans, $chan;
}
my @engines;
for my $path (glob "PCW/Engine/*.pm")
{
next if $path =~ /Abstract|Simple/;
my ($engine, undef, undef) = fileparse($path, '.pm');
push @engines, $engine;
}
local $" = ', ';
print <<DESU
PerlChanWiper - a multifunction CLI tool for some imageboards
Usage: $0 --chan [chan] --mode [mode] ...
PCW Options:
--chan Chan name (@chans)
--mode Work mode (@modes)
--proxy Path to file or url which contains proxies (default is '$cnf{proxy_file}')
--proxytype Default proxy protocol (default is '$cnf{proxy_type}')
--ua User agents list file (default is '$cnf{useragents}')
--cconfig Common config file (default is '$cnf{common_config}')
--mconfig Mode config file (default is 'configs/\$mode_name.pl')
--logfile File for logging (STDOUT by default)
--lognocolor Disable colored log output
--loglevel 1-4, 1 by default
--verbose Verbose output
UI options:
--help Show this message and exit
--desu Show desu and exit
Supported chan engines: @engines
Version $VERSION
DESU
}
#-----------------------------------------------------------------------------
# LOAD
#-----------------------------------------------------------------------------
sub load_all()
{
check_user_error();
load_configs(); #-- load %mode_config
load_proxies();
load_agents();
load_chan(); #-- load $chan_config
check_chan_config();
load_logging();
load_engine();
check_captcha_config();
check_image_config();
check_video_config();
return load_mode();
}
parse_args();
my $pcw = load_all();
show_info();
#-----------------------------------------------------------------------------
# RUN
#-----------------------------------------------------------------------------
my $start_time = time;
my $ws = AnyEvent->signal(signal => "INT", cb => sub { $pcw->stop; });
$pcw->init;
$pcw->start;
while ($pcw->{is_running})
{
Coro::Timer::sleep 1
}
#-----------------------------------------------------------------------------
# ON EXIT
#-----------------------------------------------------------------------------
sub show_stats($)
{
my %stats = %{ shift() };
say "~" x 30;
for my $k (keys %stats)
{
say ucfirst($k =~ s/_/ /gr) .": $stats{$k}";
}
}
given ($cnf{mode})
{
when ('ProxyChecker')
{
show_stats $pcw->{stats};
my @p = @{ $pcw->{checked} };
say $mode_config{save} ? sprintf("There are %d good proxies.", scalar @p) : "Good proxies: @p";
}
when ('AutoBump')
{
show_stats $pcw->{stats}{bump};
show_stats $pcw->{stats}{delete};
}
default
{
show_stats $pcw->{stats};
}
}
__DATA__
KMMW; lMMMMK XMl ;Mc0M0 xMM,M:OMMMMK xMMxcMMMMMMMMMMMkWMMMMMMMMMMk .WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
0MWx. dMMMMO. xO' xW,WMd dMN:M''WMMMM..WMW.,XMMMMMMMMMWONMMMMMMMMMMk .XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Mx. ;XMMMWc '. WoxMM' dMOdN lMMMMd dMMO oWMMNMMMMMM0XMMMMMMMMMMX. OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
. .OMMMMO. cX:MMN. kMcNx kMMMW. NMM: .0MNoXMMMMMKXMMMM0KMMMMW, dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
;XMMMN: : XcXMM0 KNlM, KMMMk :MMN.,. cWN'kMMMMMKKMMMMxcWMMMW, lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
;cNMMMx. .k ckOMMNd .MdXW. .NMMM; KMMk Ol .0K oMMMMMKXMMMMk.0MMMW, lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
XMMM0. .. lX. .0xMMWW. :NxMNx 'WMMN.'MMMl X0. lo ,WMMMM0NMMMMk oMKWW. lMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM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