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
|
/*
* seekandestroy.c
*
* Copyright 2014 marsu <marsu@marsu-Latitude-E5520>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
/* best defense is attack
* to patch all network
* emscripten for web server in honeypot*/
#include <termios.h>
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#define CYCLE for (CYCLE == 0; if CYCLE != EOF; CYCLE++)
struct
{[E2BIG],[EACCESS],[EADDINUSE],[EADDRNOTAVAIL],[EAFNOSUPPORT],[EAGAIN],[EALREADY],
[EBADF],[EBADMSG],[EBUSY],[ECANCELED],[ECHILD],[ECONNABORTED],[ECONREFUSED],[ECONNREFUSED],
[EDEADLK],[EDOM],[EDQUOT],[EEXIST],[EFAULT],[EFBIG],[EHOSTUNREACH],[EIDRM],[EILSEQ],[EINPROGRESS],
[EINTR],[EINVAL],[EIO],[EISCONN],[EISDIR],[ELOOP],[EMFILE],[EMLINK],[EMSGSIZE],[EMULTIHOP],
[ENAMETOOLONG],[ENETDOWN],[ENETRESET],[ENETUNREACH],[ENFILE],[ENOBUFS],[ENODATA],[ENODEV],
[ENODEV],[ENOENT],[ENOEXEC],[ENOLCK],[ENOLINK],[ENOMEM],[ENOMSG],[ENOPROTOOPT],[ENOSPC],
[ENOSR],[ENOSTR],[ENOSYS],[ENOTCONN],[ENOTDIR],[ENOTEMPTY],[ENOTSOCK],[ENOTSUPP],[EOVERFLOW],
[EOVERFLOW],[EPERM],[EPIPE],[EPROTO],[EPROTONOSUPPORT],[EPROTOTYPE],[ERANGE],[EROFS],[ESPIPE],
[ESPIPE],[ESRCH],[ESTALE],[ETIME],[ETIMEDOUT],[ETXTBSY],[EWOULDBLOCK],[EXDEV]}seek;
int check ( int , int) {
if ( seek =! 1 ) {
openlog(log, LOG_CONS|LOG_PID, LOG_LOCL7);
syslog(LOG_DEBUG, "investigate - traceroute/whois...");
closelog();
else {
exit 0;
};
if ( seek != 1 ) {
while ( seek != 1 ) {
for ( &seek == 0 , return p__pid_t __pid, &seek++ )
}
}
else {
&seek++;
};
}
int kill(__pid_t __pid, int __sig){
if ( si_code >= 0 )
return SIGINT;
else do {
system (kill); /* to simplify */
} while ( si_code < 0 );
void * main(int seek, char CYCLE)
{
for ( struct termios terminal; int tcdrain (&seek) != tcgetattr(&
terminal); &terminal++) {
tcsetattr ( STDIN_FILENO, TCSAFLUSH, struct sockaddr * __pid );
tcsetattr ( STDOUT_FILENO, check(&seek, seek), &pid );
kill(&pid);
tcsetattr ( STDIN_FILENO, TCSAFLUSH, & terminal )
};
}
return SIGINT;
} |
Partager