Category: linux

  • Cracking the RSA keys (Part 2 – generating the private key)

    by

    in

    Previous part: Part 1 – Cracking the RSA keys (Part 1 – getting the private exponent) PART 2 For a private key generation, we need to create an asn1parse.txt file with the contents of: asn1=SEQUENCE:rsa_key [rsa_key] version=INTEGER:0 modulus=INTEGER:0 pubExp=INTEGER:0 privExp=INTEGER:0 p=INTEGER:0 q=INTEGER:0 e1=INTEGER:0 e2=INTEGER:0 coeff=INTEGER:0

  • Cracking the RSA keys (Part 1 – getting the private exponent)

    by

    in

    The whole idea of the RSA private key is the hardness of factorisation of two very large prime numbers. That’s why recommended RSA keys are >2048bit long. I won’t get into RSA details itself. If You need any info, it’s here: WIKI For a sake of demonstration, 256bit public_key will be used. With the current…

  • Add a separate SSL certificate for a subdomain in Directadmin

    by

    in

    Directadmin doesn’t have possibility to add SSL certificate for a subdomain, unless You add it as a separate domain in domain control. You may also use separate SSL certificates by creating a custom httpd (or nginx, but it would require to change the CAROOT line) file in user configuration dir i.e. loginroot.com.cust_httpd (or loginroot.com.cust_nginx if…

  • Wrong LSAPI header type: 6 instead of expected 7

    by

    in

    If You are getting this error after update: [Thu Jul 09 13:32:08.465065 2015] [lsapi:error] [pid 467230:tid 140242392512256] [client 10.3.13.37:65135] [host loginroot.com] Backend error on sending request(GET / HTTP/1.1); uri(/) content-length(0) (lsphp is killed?): Wrong LSAPI header type: 6 instead of expected 7 That’s because cloudlinux developers modified their lsapi code, and didn’t add variable default…

  • DBD::mysql perl module hasn’t been fully installed

    by

    in

    DADA mail error: [Wed Jun 24 11:35:49 2015] mail.cgi: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: ../../ ../../perllib /sw/lib/perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5 ../../DADA/perllib ../../../ ../../DADA ../../../DADA/perllib ../../../perllib ./ ../ ./../../DADA /home/login/domains/loginroot.com/public_html/mailinglist/DADA/perllib /home/login/domains/loginroot.com/public_html/mailinglist /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/login/perl5/lib/perl5 /home/login/perl5/lib/perl5/x86_64-linux-thread-multi /home/login/perllib /home/login/perl/home/login/domains/loginroot.com/public_html/mailinglist/DADA/perllib /home/login/perl/home/login/domains/loginroot.com/public_html/mailinglist /home/login/perl/usr/local/lib64/perl5 /home/login/perl/usr/local/share/perl5 /home/login/perl/usr/lib64/perl5/vendor_perl /home/login/perl/usr/share/perl5/vendor_perl /home/login/perl/usr/lib64/perl5 /home/login/perl/usr/share/perl5 /home/login/perl.) at (eval 20) line…

  • wsgi_python.h missing

    wsgi_python.h missing

    by

    in

    /var/www/build/libtool –silent –mode=compile gcc -std=gnu99 -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -g -O2 -I/usr/include/python2.7 -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch src/server/mod_wsgi.slo In file included from src/server/mod_wsgi.c:22:0: src/server/wsgi_python.h:24:20: fatal error: Python.h: No such file or directory compilation terminated. apxs:Error: Command failed with rc=65536 . make: *** [src/server/mod_wsgi.la] Error 1

  • The host at this IP address is infected with the CryptPHP PHP malware.

    by

    in

    Have anyone else got the same problem with cbl.abuseat.org?? Full message is here: The host at this IP address is infected with the CryptPHP PHP malware. CryptoPHP is a threat that uses backdoored Joomla, WordPress andn Drupal themes and plug-ins to compromise webservers on a large scale. More information about this threat can be found…

  • Cacti Allowed memory size of 123456 bytes exhausted

    by

    in

    If You get such error on after installing cacti, and no mater how big memory_limit: [Mon Nov 17 22:41:49.267134 2014] [:error] [pid 24152] [client 78.58.224.49:41062] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 130968 bytes) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 833 Please make sure if You imported the cacti sql file.…

  • How-to: open/close the luks partition

    by

    in

    The title is pretty self-explanatory :) To open the luks partition: cryptsetup -v luksOpen /dev/local/home home_crypted And to close it: cryptsetup -v luksClose home_crypted

  • qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev

    by

    in

    This error was received on CentOS 7, at the beginning of the install command: ERROR internal error: process exited while connecting to monitor: qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev The fix is to edit /etc/fstab find the devpts line and change it to: devpts /dev/pts devpts gid=5,mode=620 0 0 Run remount command mount -o…