/opt/dedrads/__pycache__
NameSizeModeActions
alp.cpython-313.pyc188170644editdlrm
check_prov.cpython-313.pyc63940644editdlrm
clean_exim.cpython-313.pyc89020644editdlrm
cmspass.cpython-313.pyc63780644editdlrm
cms_check.cpython-313.pyc140790644editdlrm
cms_counter.cpython-313.pyc329480644editdlrm
cpanel_postgres_manager.cpython-313.pyc407620644editdlrm
docroot.cpython-313.pyc54920644editdlrm
envinfo.cpython-313.pyc81840644editdlrm
exclude_rbl.cpython-313.pyc66820644editdlrm
first_setup.cpython-313.pyc204930644editdlrm
fixwpcron.cpython-313.pyc72230644editdlrm
innodb_converter.cpython-313.pyc143470644editdlrm
mail_sources.cpython-313.pyc99690644editdlrm
modsec_disable.cpython-313.pyc158380644editdlrm
mysql_selector.cpython-313.pyc867480644editdlrm
show-conns-adv.cpython-313.pyc684140644editdlrm
sparta.cpython-313.pyc4909030644editdlrm
vhost_data.cpython-313.pyc69830644editdlrm
Edit: /opt/dedrads/__pycache__/fixwpcron.cpython-313.pyc (7223B)
}j~SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr Sr Sr Sr Sr Sr \S :Xa\ "5 gg) aywp-cron was a hacky Wordpress feature added to compensate for Windows's lack of scheduling system. Certain plugins can trigger very poor behavior that causes it to be run every time anything happens on the site. The end result is dozens of thousands of redundant hits to wp-cron.php. This script disables the wp-cron feature, and sets up a cronjob to run once every three hoursN) is_cpuserc[R"[S9nURSS9nUR SSS[ R RSS9 S n[R"5nUS :XaUR S S US 9 OUR SSSUS9 UR5nUR (a[ R RUR 5(d#[R"UR S35 UR RS5SS:XdeUR RS5SUl[%US5(dSUlUR&(aX4l[)UR5(d#[R"URS35 U$![ ["4a [R"S5 Nf=f)zParse commandline args) descriptionT)requiredz--pathz-pPATHzpath to wordpress installation. If using this argument, we assume the customer has not modified the site to have wp-config.php in an alternate directory. Both wp-config.php and wp-cron.php should be present in the supplied directory)metavartypehelpzSet this up for every WordPress installation that the user owns. Installations modified to have wp-config.php in an alternate folder for security are supported; wp-config.php and wp-cron.php files will be located separately rootz--userz-u)r z--allz-a store_true)actionr z does not exist/homez-Incorrect path. Should be in a user's homedirallFz is not a cPanel user)argparseArgumentParser__doc__add_mutually_exclusive_group add_argumentospathrealpathgetpassgetuser parse_argsisdirsysexitsplituserAssertionError IndexErrorhasattrrr)parsergroupall_help current_userargss /opt/dedrads/fixwpcron.pyrrs  $ $ 9F  / / / >E $ WW  ,H ??$Lv 8T9 7DHM    D yyww}}TYY'' HH {/2 3 F99??3'*f4 44 ,Q/DI 4   xx TYY   DII;345 K + F HHD E FsAF<<&G%$G%c[USS9nUR5nSSS5 [W5HUup4SU;dM X#S-S:Xa[SU5 gX#S-S:XaSX#S-'O[S R U5S SS 9 g O [US SS9nUR U5 SSS5 g!,(df  N=f!,(df  g=f) z,Sticks the DISABLE_WP_CRON line in wp-configzutf-8)encodingNDB_USERrz#define('DISABLE_WP_CRON', 'true'); zFile already modified: zCNon-standard wp-config file at {}. Add this manually under DB_USER:z"define('DISABLE_WP_CRON', 'true');)sepw)open readlines enumerateprintformat writelines)filenamehandlelinelistindexlines r+turn_offr=<s h )V##% * *    "&LL.9 "d*&L#%%+VH%58   + hg .&(# / .% * )$ / .sB.B?. B<? C cU(a[R"5nO[R"US9nSUS3n[URU5Vs/sHoUR 5(dMUPM sn5S:a [ SU5 gUR US9nURRS5 URR[R"SS 55 UR5 gs snf) z$Setup php -q wp-cron.php system cron)r"zcd z; php -q wp-cron.phprzCron already enabled:N)command;)crontabCronTablen find_command is_enabledr5newhoureveryminuteonrandomrandintwrite)r"rnot_rootctabcmdxjobs r+ setup_cronrTTs D) v) *C t((- @-!A- @AAE %s+ ((3( CHHNN1JJMM&..B'(JJL As C5,C5c(/n/n[R"[RRSU55HTup4nSU;a/UR [RRUS55 SU;dMCUR U5 MV X!4$)z8Find wp-config.php files and dirs containing wp-cron.phpz/home wp-config.phpz wp-cron.php)rwalkrjoinappend)r"crondirsconfigsr _ filenamess r+ find_filesr^dsvHG ggbggll7D&AB i ' NN277<<o> ? I % OOD ! C  cb[5nUR(a9[RRURS5/nUR/nO[ UR 5up[ U5S:a [S5 [USS06 [5 [ U5S:a [S5 [USS06 [5 UHn[U5 M UH#n[UR X0R5 M% [S5 g ![a [SU5 Maf=f) zMain program logicrVrzwp-config.php file(s):r0r/z-dir(s) to setup system crons for wp-cron.php:zError reading/writing tozdone.N) rrrrXr^r"rDr5r=OSErrorrTr)r*r[rZrs r+mainrbps  x"T"  4 TN 499dHH- 'N  4 ,d 3 4s DD.-D.__main__)rrrrrLrrBradsrrr=rTr^rb__name__r_r+rgsPH  'T$0  4 zFr_