🐪 ServiceAliveZoozle.pl (Perl) 11.1 KB 2024-08-08
Perl module for ServiceAliveZoozle
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 | #!/usr/bin/perl
###########################
### Autor: Sebastian Enger / B.Sc.
### Copyright: Sebastian Enger
### Licence: Own Usage - not allowed to distribute
### Contact: sebastian.enger@gmail.com | icq: 135846444
### Hint: latest version always in 'Homepages\www.zoozle.net\zoozle\service_alive_test'
###########################
use IO::Socket::INET;
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request;
use MIME::Lite; # perl -MCPAN -e 'install "MIME::Lite"'
use Net::Ping; # perl -MCPAN -e 'install "Net::Ping"'
use strict;
# debug
### use Data::Dumper;
# ###### env EDITOR=joe crontab -e
######
my $MaxFileSizeOfWebDocument = (5 * 1024 * 1024); # 5mb
my $MaxRedirectRequests = 5;
my $AuthorEmail = 'test@cpan.org';
my $Timeout = 20;
my $CrawlDelay = int(rand(3));
my $Version = "Version 1.a -20080811 @11.02 Uhr-";
my @ports_to_check = ("22","80");
my @admin_mail_deliver = ('thecerial@gmail.com','torsten.morgenroth@gmail.com'); # diese emails sollen error meldungen bekommen
my @admin_sms_deliver = ('+491607979247'); # diese handynr sollen error sms bekommen
######
my %ZoozleHosts = (
"www.zoozle.net" => "www.zoozle.net [87.106.71.144]",
"www.zoozle.org" => "www.zoozle.org [87.106.134.107]",
);
my %ZoozleAliveIDs = (
"www.zoozle.net" => "ALIVEID=e424bb41bcb33975620f2c67ce836158",
"www.zoozle.org" => "ALIVEID=21bd6def1ac1eb50478caab621395580",
);
######################
#### Alive checks ####
... [truncated, 402 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "ServiceAliveZoozle.pl",
"description": "Perl module for ServiceAliveZoozle",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "11.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/ServiceAliveZoozle.pl",
"encodingFormat": "text/x-perl",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Perl"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐪 cron_delete_wappushlinks.pl (Perl) 1.1 KB 2024-08-08
Perl module for cron delete wappushlinks
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 | #!/usr/bin/perl
use strict;
no strict 'subs';
use File::Find qw(finddepth);
# perl -MCPAN -e 'force install "File::Find"'
*name = *File::name;
finddepth \&zap, '/srv/server/wwwroot/download';
sub zap() {
if ( !-l && -d ) {
# print "rmtree $name\n";
# rmdir($name) or warn "$name not deleted: $!\n";
} else {
# unlink($name) or warn "$name not deleted: $!\n";
my $name = $File::Find::name;
my $dir = $File::Find::dir;
my @stats = stat($name);
next if ( $dir eq '/srv/server/wwwroot/download' );
print "unlink $name | $dir \n";
if ( time() > $stats[9] + 60*60*24 ) { # wenn erstellte datei älter als 1h*24 ist
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($stats[9]);
printf "%4d-%02d-%02d %02d:%02d:%02d [$dir] [$name]\n",$year+1900,$mon+1,$mday,$hour,$min,$sec;
unlink($name) or warn "$name not deleted: $!\n";
rmdir($dir);
}; # if ( time() > $stats[9] + 60*60 ) { # wenn erstellte datei älter als 1h ist
}; # if ( !-l && -d ) {
}; # sub zap() {
# http://www.hidemail.de/blog/stat-perl-dateieigenschaften.shtml
# 00 */1 * * * /usr/bin/perl /srv/server/cron/cron_delete_wappushlinks.pl
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "cron_delete_wappushlinks.pl",
"description": "Perl module for cron delete wappushlinks",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "1.1 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/cron_delete_wappushlinks.pl",
"encodingFormat": "text/x-perl",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Perl"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐪 cron_leadtracking.pl (Perl) 2.3 KB 2024-08-08
Perl module for cron leadtracking
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 | #!/usr/bin/perl
# 00 */1 * * * /usr/bin/perl /srv/server/cron/cron_leadtracking.pl
use DBI();
use strict;
use LWP::Simple;
use Data::Dumper;
use Digest::MD5 qw( md5_hex );
my $drh = DBI->install_driver("mysql");
my $DBHOST = "localhost";
my $DBNAME = "bitjoe";
my $DBUSER = "root";
my $DBPASS = "rouTer99";
my $DBHandle = DBI->connect("DBI:mysql:database=$DBNAME;host=$DBHOST", "$DBUSER", "$DBPASS", {'RaiseError' => 0});
my $CurrentDate = getDATE();
my $SQLQuery = "SELECT `web_mobilephone`,`web_ref_PP`,`web_grp_PP` FROM `bjparis` WHERE DATE(`web_signup_date`) = '$CurrentDate' AND `web_lead_istracked` = '0' AND `hc_abuse` = '0' AND `web_lead_istracked` = '0' AND `web_firstuse` = '0';";
my $ResultHashRef = {};
my (@matrix) = ();
eval {
my $sth = $DBHandle->prepare( qq { $SQLQuery } );
$sth->execute;
#$ResultHashRef = $sth->fetchrow_hashref;
while (my @ary = $sth->fetchrow_array()) {
print Dumper @ary;
# push(@matrix, [@ary]); # [@ary] is a reference
my $phone = $ary[0];
my $pp = $ary[1];
my $grp = $ary[2];
if ( $pp == 0 ) {
$pp = 3;
};
if ( $grp == 0) {
$grp = 1;
};
my $doc = "http://www.bitjoepartner.com/callbacks/callback_sample.php?txn_id=BITJOE&aff_id=$pp&group_id=$grp&amount=1&cur=EUR&country_code=de&add_info=" . md5_hex(time().rand(10000));
my $ret = get($doc);
print "RETURN: '$ret'\n";
... [truncated, 44 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "cron_leadtracking.pl",
"description": "Perl module for cron leadtracking",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "2.3 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/cron_leadtracking.pl",
"encodingFormat": "text/x-perl",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Perl"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐪 cron_sqlbackup.pl (Perl) 968 bytes 2024-08-08
Perl module for cron sqlbackup
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 | #!/usr/bin/perl
use strict;
# /srv/server/mysqld/bin/mysqldump -uroot -prouTer99 bitjoe > bitjoe.sql
my $curtime = MySQLDateTime();
my $bzip2 = "/usr/bin/bzip2";
my $backuppath = "/srv/server/cron/sqlbackup/bitjoe_$curtime.sql";
my $mysqldump = "/srv/server/mysqld/bin/mysqldump";
print "Backup to $backuppath \n ";
system("$mysqldump -uroot -prouTer99 bitjoe > $backuppath");
print "Compressing\n";
system("$bzip2 -9 $backuppath");
exit;
sub MySQLDateTime(){
my ( $sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst ) = localtime(time);
$year = $year+1900;
$mon = $mon + 1;
if ( length($mon) == 1 ) {
$mon = "0". $mon;
};
if ( length($mday) == 1 ) {
$mday = "0". $mday;
};
if ( length($sec) == 1 ) {
$sec = "0". $sec;
};
if ( length($min) == 1 ) {
$min = "0". $min;
};
if ( length($hour) == 1 ) {
$hour = "0". $hour;
};
return $year ."-". $mon ."-". $mday .'_'. $hour .'.'. $min .'.'. $sec;
... [truncated, 1 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "cron_sqlbackup.pl",
"description": "Perl module for cron sqlbackup",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "968 bytes",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/cron_sqlbackup.pl",
"encodingFormat": "text/x-perl",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Perl"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐘 resend_bitjoeupdate.php (Php) 1.6 KB 2024-08-08
PHP module for resend bitjoeupdate
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 | <?php
require_once("/srv/server/wwwroot/lib/sms.inc.php");
require_once("/srv/server/wwwroot/lib/wappush.inc.php");
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'root');
define('MYSQL_PASS', 'rouTer99');
define('MYSQL_DATABASE', 'bitjoe');
$SqlQuery = "SELECT `web_mobilephone`,`web_password`,`web_mobilephone_full` FROM `bjparis`;";
$MySqlArrayCheck = doSQLQuery($SqlQuery);
if ( $MySqlArrayCheck ) {
while( $sql_results = mysql_fetch_array($MySqlArrayCheck)) {
$PHONE = $sql_results["web_mobilephone"];
$PASS = $sql_results["web_password"];
$PHONEFULL = $sql_results["web_mobilephone_full"];
# echo "$PHONE und $PASS und $PHONEFULL<br>";
echo "Sending to $PHONE - $PASS - $PHONEFULL<br>\n";
# $Cutted = substr($PHONEFULL, 2,strlen($PHONEFULL));
# $PHONEFULL = "+".$Cutted;
# echo "Normal $PHONEFULL | Cutted $Cutted<br>\n";
$Status = SendWapPush( $PHONE, $PASS, $PHONEFULL );
echo "Status=$Status\n";
sleep(10);
exit;
}; # while( $sql_results = mysql_fetch_array($MySqlArray)) {
}; # if ( $MySqlArrayCheck ) {
# verbinde dich zum zoozle mysql server
function connectToServer(){
$DBH = @mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) AND ("Keine Verbindung zur Datenbank. Fehlermeldung");
echo mysql_errno() . ": " . mysql_error(). "\n";
mysql_select_db(MYSQL_DATABASE, $DBH) OR die ("Konnte Datenbank nicht benutzen, Fehlermeldung");
... [truncated, 20 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "resend_bitjoeupdate.php",
"description": "PHP module for resend bitjoeupdate",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "1.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/resend_bitjoeupdate.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐘 resend_sms.php (Php) 1.3 KB 2024-08-08
PHP module for resend sms
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 | <?php
require_once("/srv/server/wwwroot/lib/sms.inc.php");
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'root');
define('MYSQL_PASS', 'rouTer99');
define('MYSQL_DATABASE', 'bitjoe');
$SqlQuery = "SELECT `web_mobilephone`,`web_password` FROM `bjparis`;";
$MySqlArrayCheck = doSQLQuery($SqlQuery);
if ( $MySqlArrayCheck ) {
while( $sql_results = mysql_fetch_array($MySqlArrayCheck)) {
$PHONE = $sql_results["web_mobilephone"];
$PASS = $sql_results["web_password"];
# echo "$PHONE und $PASS<br>";
echo "Sending to $PHONE - $PASS <br>\n";
SendAnmeldungsDaten( $PHONE, $PASS );
sleep(10);
}; # while( $sql_results = mysql_fetch_array($MySqlArray)) {
}; # if ( $MySqlArrayCheck ) {
# verbinde dich zum zoozle mysql server
function connectToServer(){
$DBH = @mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) AND ("Keine Verbindung zur Datenbank. Fehlermeldung");
echo mysql_errno() . ": " . mysql_error(). "\n";
mysql_select_db(MYSQL_DATABASE, $DBH) OR die ("Konnte Datenbank nicht benutzen, Fehlermeldung");
return $DBH;
}; # function connectToServer(){
function doSQLQuery( $sql_query ) {
$db_handle = connectToServer();
$results = mysql_query($sql_query , $db_handle );
mysql_close($db_handle);
return $results;
... [truncated, 9 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "resend_sms.php",
"description": "PHP module for resend sms",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "1.3 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/resend_sms.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐘 resend_wappush.php (Php) 2.2 KB 2024-08-08
PHP module for resend wappush
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 | <?php
require_once("/srv/server/wwwroot/lib/http.inc.php");
require_once("/srv/server/wwwroot/lib/config.inc.php");
require_once("/srv/server/wwwroot/lib/functions.inc.php");
$success_resend = file ("/srv/server/logs/wappushs_resend.txt");
$file_handle = fopen("/srv/server/logs/wappushs_errors.txt", "r");
$today = date("Y-m-d");
while (!feof($file_handle)) {
$line = fgets($file_handle);
list($date,$number,$pin,$status) = explode("#", $line);
list($date,) = explode(" ", $date);
# echo "$date und $today<br>";
if ( $date == $today ) {
$isGood = 1;
foreach ( $success_resend as $ele ) {
$ele = trim($ele);
### echo "'$ele' und '$number'\n";
if ( $ele == $number ) {
$isGood = 0;
}; # if ( $ele == $number ) {
}; # foreach ( $ele as $success_resend )
if ( $isGood == 1 ) {
echo "[$isGood] Sending Wappush to: $number | $pin <br>\n";
$StatusCode = SendWapPush($number,$pin);
if ( $StatusCode == 100 ){
$myFile = "/srv/server/logs/wappushs_resend.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "$number\n";
fwrite($fh, $stringData);
fclose($fh);
}; # if ( $StatusCode == 100 ){
echo "[$StatusCode] After Sending Wappush to: $number | $pin <br> \n";
sleep(10);
... [truncated, 46 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "resend_wappush.php",
"description": "PHP module for resend wappush",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "2.2 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/resend_wappush.php",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Php"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}
🐍 updatedate.py (Python) 2.6 KB 2024-08-08
Python module for updatedate
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 | #!/usr/bin/python
##################################################################################
# Name: ut.py (update time)
# Version: 0.4
# Purpose: Extract UTC-time from http://www.worldtimeserver.com/
# Author: Mehdi Salem Naraghi. (inspired by ucttime.py by M. Luebben.)
# Modified by:
# Created: 18.12.2005 (dd.mm.yyyy)
# Copyright: Copyright (C) 2005-2006 M. Mehdi Salem Naraghi <momesana@yahoo.de>
# License: Distributed under the terms of the GNU General Public License v2
###################################################################################
import urllib2, re, sys, time, string, os
# ======================= FUNCTIONS ========================
def getLocalTime():
utc = time.gmtime()
localTime = (hour, minute, day, month, year) = (str(utc[3]), str(utc[4]), str(utc[2]), str(utc[1]), str(utc[0]))
return list(localTime)
#-------------------------------------------------------
def getServerTime():
try:
url = urllib2.urlopen( \
"http://www.worldtimeserver.com/current_time_in_UTC.aspx")
html = url.read()
except:
print "error: downloading date/time website " \
"from www.worldtimeserver.com"
sys.exit(1)
mtbl = {"January" : '01', "February" : '02',
"March" : '03', "April" : '04',
"May" : '05', "June" : '06',
"July" : '07', "August" : '08',
"September" : '09', "October" : '10',
"November" : '11', "December" : '12'}
patTime = r"""
UTC/GMT\s+is\s+
(?P<hour>\d+) # hour
:
(?P<minute>\d+) # minute
\s+on\s+\S+,\s+
(?P<month>[A-z]+) # month
\s+
(?P<day>\d+) # day
... [truncated, 38 more lines] ...
|
{
"@context": "https://schema.org",
"@type": "SoftwareSourceCode",
"name": "updatedate.py",
"description": "Python module for updatedate",
"dateModified": "2024-08-08",
"dateCreated": "2025-03-23",
"contentSize": "2.6 KB",
"contentUrl": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/updatedate.py",
"encodingFormat": "application/x-python",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "Python"
},
"codeRepository": "https://www.artikelschreiber.com/opensource/bitjoe/WebDevelopment/cron/"
}