Google email relay – Multiple destination domains per transaction is unsupported

Those experiencing this problem when trying to send batches of emails through the google’s multiple MX records (aspmx.l.google.com , alt1.aspmx.l.google.com , …) , here are some workarounds.

In this case scenario we will assume we are using CentOS and sendmail as our method.

  1. Segregate different domain emails to be sent through a separate  sendmail session (this is usually done in your code)
  2. Relay everything through the smtp.gmail.com
  3. Configure sendmail to delivery to each email on one connection.

On you sendmail.mc add these following line

define(`SMTP_MAILER_MAXRCPTS', `1')dnl
define(`RELAY_MAILER_MAXRCPTS', `1')dnl

The above lines MUST be added before

MAILER(`local')dnl
MAILER(`smtp')dnl

After that save your .mc and m4 it to your .cf

m4 sendmail.mc > sendmail.cf

Restart sendmail and test

service sendmail restart

If, however, you are those that directly edit the .cf instead of the .mc then you’ll have to do the following

In you .cf find the following text (“Msmtp,” , “Mesmtp,” , “Mdsmtp, “, “Mrelay,”)
After that find the following line(s)

T=DNS/RFC822/SMTP,

And change it to look like this

r=1, T=DNS/RFC822/SMTP,

Explanation:

This problem isn’t really an error as it requques your emails when this happens.
Though the third solution will work is not ideal to use as it requires sendmail to open/close connections for each email.
One last thing to look for is the cached-connections for sendmail

ConnectionCacheSize
ConnectionCacheTimeout

Read More

TL-WR1043ND Mass Firmware Flashing (DD-WRT/OpenWRT)

With the latest version of the stock TP-Link TL-WR1043ND firmware it changed its way of authenticating users to the router’s administration page, from Basic AUTH to Form base authentication. This meant that the previous solution for mass flashing these routers from stock to 3rd party wasn’t the same.
Old way : http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#oem.mass.flashing

After further examing the new firmware’s GUI it seemed they now added two new variables to the authentication process. Variable cmp and session.

My task was to find a way to mass flash many of these as fast as possible, I wrote a small bash script that would do just that. All you need to do is save this script as something like “script.sh” and run through CLI

sh script.sh factory-to-ddwrt.bin

Cookie explanation:

Cookie is composed of a base64-URLEncoded username and password

cookie = "Authorization="+URLencode("Basic "+BASE64("admin:admin"))+";domain=192.168.1.1;path=/";

Script

#!/bin/bash

curl -v
--cookie "Authorization=Basic%20YWRtaW46YWRtaW4%3D;domain=192.168.1.1;path=/"
--header "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0"
http://192.168.1.1 > "first_output.txt"

cmp = `sed -n 18p "first_output.txt" | awk -F '"' '{print $2}'`
session = `sed -n 18p "first_output.txt" | awk -F '"' '{print $4}'`

curl -v
--cookie "Authorization=Basic%20YWRtaW46YWRtaW4%3D;domain=192.168.1.1;path=/"
--header "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0"
--referer 'http://192.168.1.1/userRpm/SoftwareUpgradeRpm.htm'
--form "Filename=@$1" -F 'Upgrade=Upgrade' -F 'cmp=$cmp' -F 'session=$session'
http://192.168.1.1/incoming/Firmware.htm > /dev/null

sleep 1

curl -v
--max-time 2
--cookie "Authorization=Basic%20YWRtaW46YWRtaW4%3D;domain=192.168.1.1;path=/"
--header "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0"
--referer 'http://192.168.1.1/incoming/Firmware.htm'
http://192.168.1.1/userRpm/FirmwareUpdateTemp.htm > /dev/null

Read More

Polldaddy Votes Hack V2

This software is no longer maintained, ¬†there isn’t going to any updates from me at least. I’ve released the source-code if anyone wants to work on it.

Source code: PolldaddyHack

 

Proof-of-concept:

Seeing as how people were having difficulties using the CLI Polldaddy Hack tool I decided to make a GUI that would make it faster to not only gather the correct Poll answers but to also submit votes faster.

Polldaddy Hack
Polldaddy Hack V2 2013

To use this new tool just download the file zip file and extract the contents. Follow the video below on how to use it.

Download Polldaddy Hack V2
(more…)

Read More

Polldaddy Votes Hack

[CLICK HERE UPDATED Polldaddy Hack Tool V2]

This post will show you a “proof-of-concept” on how to hack polldaddy polls for unlimited and automated votes

Requirements:

  • Polldaddy Poll URL (ex. http://polldaddy.com/poll/7300120)
  • Poll answer you want to use (ex. PDI_answer33136443)
  • Java installed in your system
  • This PolldaddyHack Java program

To obtain the Poll URL you must have a browser that has a DOM inspector OR that allows you to install firefug extension on it.

Assuming you have “FIREFOX” install firebug from this website

Once that is installed go to where the poll is (ex. bottom of this post).
(more…)

Read More

Video-Bay ownCloud Video App

With the lack of a Video Gallery for ownCloud comes out “Video-Bay” an APP made for ownCloud to showcase and playback user’s videos under a specialized “Navigation Tab” making it easy for users to quickly access and play their videos.

Video-Bay_Preview_1Video-Bay_Preview_2

Video-Bay uses JWPlayer as its HTML5/Flash player to playback video files of .mp4, .flv, and more formats, in addition it uses ffmpeg to generate thumbnails for such videos (which must be install in order to see video previews). This APP scans the users collection and looks for files of ‘video’ mime-type then without structure puts this videos in the “Videos Tab”.

Currently this APP can be downloaded from the following sources:

apps.owncloud and github

(more…)

Read More

Install ownCloud on CentOS 6.4 x86_64

As you may know ownCloud is a wonderful FREE online storage platform that can be install in any kind of environment without those annoying restrictions of max file size, total storage and bandwidth constraints. It can be deployed on almost any box you may have laying around for a quick online storage system. Being free and early in stage it has its minor/major issues when trying to get out its full potential, along the way I’ve done multiple installations trying to make this work as flawless as possible and here is a complete guide on how to install it on CentOS 6.4.

Lets start by assuming you already have a web server running on Centos 6.4 with PHP 5.5 (Important that you have this version), if not then refer to these online guides on how to do so.

CentOS 6.4 Install Guide

PHP 5.5 Install Guide

Webserver Guide

Once you have your webserver up and running we can continue with our installation of ownCloud.

To install ownCloud

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo
yum install owncloud

(more…)

Read More

BlackBerry Engineer Screen (BBEscreen)

This applet will generate an expiration code for the hidden BlackBerry Engineer Screen (BBEscreen)

On your BlackBerry Hold ALT-SHIFT-H

Up should come a screen with information about your device(Help screen). The only info you need is:

Device PIN

App Version

Uptime

Once you’ve gather this information insert it into the applet.

Depending on how many days you want to have the BBEscreen activated you then choose the appropriate code

Afterwards you need to go back to your BlackBerry and enter the code that you’ve chosen, you should now have the BBEscreen

Example input

escreen

example_run_escreen

(more…)

Read More