Uncategorized

How to mend, fix or workaround a corrupted PSQL database (Data Loss Risk)

Case Study: Couldn’t dump postgresql database , access attempted several different ways, all failed. Old database had to be dumped to transfer to a new application instance. ERROR ON LEGACY SERVER WHEN DUMPING WARNING: invalid page in block 59888 of relation base/16384/16488; zeroing out pageWARNING: invalid page in block 63671 of relation base/16384/16488; zeroing out pageWARNING: invalid page in block 63927 of relation base/16384/16488; zeroing out page Access via remote replication failed with : Caused by: org.postgresql.util.PSQLException: ERROR: could not…

0
Read More

Log4jShell : Exploit Overview, Use Cases, and Mitigation on Linux Systems Discovered

FIRST, THE ARTICLE EXPLAINING THE EXPLOIT, THEN HOW TO FIX. I was alerted today of a log4j exploit that targets LDAP servers. Below are a few articles on the exploit, then we will get into the practice of exploiting log4j. source: https://securityboulevard.com/2021/12/critical-new-0-day-vulnerability-in-popular-log4j-library-discovered-with-evidence-of-mass-scanning-for-affected-applications/ by Ilkka Turunen on December 10, 2021 News broke early Friday morning of a serious 0-day Remote Code Execution exploit in log4j – CVE-2021-44228– the most popular java logging framework used by Java software far and wide. This type of vulnerability is especially…

0
Read More

Creating a C++ program on Centos to Interface with Postgresql

source: https://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm Installation The the latest version of libpqxx is available to be downloaded from the link Download Libpqxx. So download the latest version and follow the following steps − wget http://pqxx.org/download/software/libpqxx/libpqxx-4.0.tar.gz tar xvfz libpqxx-4.0.tar.gz cd libpqxx-4.0 ./configure make make install Before you start using C/C++ PostgreSQL interface, find the pg_hba.conf file in your PostgreSQL installation directory and add the following line − # IPv4 local connections: host all all 127.0.0.1/32 md5 You can start/restart postgres server in case it is not running…

0
Read More

SIP Response Codes

Source: https://www.3cx.com/PBX/SIP-responses/ What are SIP responses? SIP responses are the codes used by Session Initiation Protocol for communication. We have put together a list of all the SIP responses known. 1xx = Informational SIP responses 100 Trying – Extended search is being performed so a forking proxy must send a 100 Trying response. 180 Ringing – The Destination User Agent has received the INVITE message and is alerting the user of call. 181 Call Is Being Forwarded – Optional, send by Server to indicate…

0
Read More

RSYNC Guide: Moving Files Across a Network With Rsync

Source: https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directoriesBy Justin Ellingwood Basic Syntax The basic syntax of rsync is very straightforward, and operates in a way that is similar to ssh, scp, and cp. We will create two test directories and some test files with the following commands:  Copy We now have a directory called dir1 with 100 empty files in it.  Copy We also have an empty directory called dir2. To sync the contents of dir1 to dir2 on the same system, type:  Copy The -r option means recursive, which is necessary for directory syncing. We could also…

0
Read More

Setting up cron jobs to automatically email disk sizes

Check this out, it’s an automatic cron job that first saves the output of ‘df’ to a text file then emails it. 20 2 * * * df -Ph > /mnt/archivelimits.txt30 2 * * * echo “This is the Server’s Archive Limits” | /bin/mail -s”Server Archive Limits” email1@domain.com email2@domain.com email3@domain.com email4@domain.com < /mnt/archivelimits.txt

0
Read More

Rollout of the updated site.

TheMadHacker.net is going through some upgrades and expansions. This process hasnt been an egregious pain, but there is a lot of content and documentation missing. For the old school audience, might i suggest: OllyDBG is a debugger that can monitor executables in real time http://www.ollydbg.de/ X64 Debug is similar to ollydbg https://x64dbg.com/#start Search engine for torrents, streaming sites (antivirus on) weboas.is Desktop automation: https://www.autohotkey.com/ Desktop functionality enhancements: https://tweaker.rammichael.com/ Network debugger, shows all active connections and can decrypt ssl traffic https://www.telerik.com/fiddler…

0
Read More
Supportscreen tag