For example, if you wanted to scan all files in the current directory, and all sub directories for any calls to base64_decode, you could do something like this:
find all files, then execute grep on them, printing out matching lines, filenames and line numbers, finally write output to resultb64.txt Another twist on this is… Read more »
To quickly and easily clone a table using T-SQL, the following is useful:
This will create the destination table and copy all source columns and data into it.
Needed to audit some apache logs, installed scalp, grabbed the XML, and it promptly puked:
Seems there is some issue with the regex in the XML file. I found this handy thread which outlines the fixes: code.google.com/p/apache-scalp/issues/de… and another person posted a XML will all the fixes: pastebin.com/uDziqcD5 Backup of the XML is below… Read more »
I was encountering database connectivity issues via a application we are running. This was a new MSSQL database we had never connected to, so there were a lot of questions as to where the connectivity issue may lie. Installed SQL Server Management Studio, and made a connection tot he new database server from there. It… Read more »
This command will not only diff the contents of the files but also recursively list out actual file differences. E.g. a file is present in folder1, but not in folder2.
I recently deployed a WordPress site. As part of the development cycle, we first built the site on staging.example.com, then moving it to the primary domain at launch. One issue that this can cause is when creating content, WordPress will create links with the full site’s URL. In our case the staging domain was linked… Read more »
Scenario: Folder /public_html looks like this:
I need to clone all the files and folders (with a couple of exceptions) in this directory into the /public_html/dev folder. We need to exclude the dev/ folder as it is the destination, and also want to exclude the dev2/ folder. Rsync makes this easy:
In my… Read more »
This document aims to describe common OAuth/Single Sign On/OpenID-related vulnerabilities. Many cross-site interactions are vulnerable to different kinds of leakings and hijackings. Both hackers and developers can benefit from reading it. OAuth is a critical functionality. It is responsible for access to sensitive user data, authentication and authorization. Poorly implemented OAuth is a reliable way to… Read more »
Here is some data I have accumulated on creating wildcard DNS entries in Microsoft DNS: Setting Up Wildcard DNS and Wildcard SSL – http://technet.microsoft.com/en-us/library/cc750429.aspx Explanation of DNS Wildcards – http://support.microsoft.com/kb/193844 Wildcard DNS and SSL setup: http://support.microsoft.com/kb/840687
Wildcard DNS via Command Line:
Occasionally a WB02 sensor fails, this is a handy chart to replace it. Fully compatible with the Innovate LM1, LM2, and any other wideband controller that uses the LSU4 sensor. The standard LSU4 wideband sensor can be found as: Bosch Part Number Vehicle Part number extra info 0 258 007 033 Volvo 2000 C70, 2.3… Read more »
Here’s a nice one liner to generate a private key and csr:
Generates the key and the csr in one shot.
I recently updated some webservers to use PHP 5.4 from 5.3. For a few WordPress sites, this caused it to begin spitting out Warning messages on the website. The warning messages in some cases caused other issues because response headers were already written due to the error, etc. While the real solution here is to… Read more »
As every target of a serious security breach will quickly note in their press releases and websites: Security is very important to them and take it very seriously. Taking this sentiment to heart before you learn it the hard way is recommended. Survive the Deep End: PHP security covers most of the major concepts that… Read more »
I was doing some webapp security audits and needed to use hashcat to attack a few hashes. Definitely a must have when dealing with hashes of any kind. Worlds fastest password cracker Worlds first and only GPGPU based rule engine Free Multi-GPU (up to 128 gpus) Multi-Hash (up to 15 million hashes) Multi-OS (Linux &… Read more »
Excel fun time! Today I had a rather large worksheet that had a column with a unique identifier. I had another worksheet with a matching column of UID’s and a second column that I wanted to “join” to the first worksheet. vlookup() is the function for the job.
Parameter 1 is the column on… Read more »