Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
osticket /
scripts /
[ HOME SHELL ]
Name
Size
Permission
Action
api_ticket_create.php
1.78
KB
-rw-r--r--
automail.php
2.28
KB
-rw-r--r--
automail.pl
1.63
KB
-rw-r--r--
rcron.php
1.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : automail.pl
#!/usr/bin/perl ####################################################################### # automail.pl # # Perl script used for remote email piping...same as as the PHP version. # # Peter Rotich <peter@osticket.com> # Copyright (c) 2006-2013 osTicket # http://www.osticket.com # # Released under the GNU General Public License WITHOUT ANY WARRANTY. # See LICENSE.TXT for details. # # vim: expandtab sw=4 ts=4 sts=4: ####################################################################### #Configuration: Enter the url and key. That is it. # url=> URL to pipe.php e.g http://yourdomain.com/support/api/tickets.email # key=> API Key (see admin panel on how to generate a key) %config = (url => 'http://yourdomain.com/support/api/tickets.email', key => 'API KEY HERE'); #Get piped message from stdin while (<STDIN>) { $rawemail .= $_; } use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->agent('osTicket API Client v1.7'); $ua->default_header('X-API-Key' => $config{'key'}); $ua->timeout(10); use HTTP::Request::Common qw(POST); my $enc ='text/plain'; my $req = (POST $config{'url'}, Content_Type => $enc, Content => $rawemail); $response = $ua->request($req); # # Process response # Add exit codes - depending on what your MTA expects. # By default postfix exit codes are used - which are standard for MTAs. # use Switch; $code = 75; switch($response->code) { case 201 { $code = 0; } case 400 { $code = 66; } case [401,403] { $code = 77; } case [415,416,417,501] { $code = 65; } case 503 { $code = 69 } case 500 { $code = 75 } } #print "RESPONSE: ". $response->code. ">>>".$code; exit $code;
Close