How to send Email with SMTP using Telnet in GNU/Linux

SMTP is a protocol to send email over the internet and it is documented in RFC821. Sending email using Telnet is straight-forward if you know how to do it.

telnet smtp.example.com 25
MAIL FROM: <example_from @ example.com>
RCPT TO: <example_to @ example.com>
DATA
From: [John Doe] <example_from @ example.com>
To: [Jane Doe] <example_to @ example.com>
Subject: This is a test message....

This is an example email content to demonstrate email sending using Telnet.

.

QUIT
[/pre]

Note that you need to type "." and QUIT after you've finished writing the email content. You should change the SMTP server domain and the email used in the example accordingly.



Backup your Gmail account in Ubuntu Linux with gmvault

This is a follow-up of my previous post “What to do when your Google disabled your Gmail account?“.

Here’s how to download all emails from your GMail account with Gmvault:

Download and setting up gmvault

1. First you need to install python-pip
[bash]
sudo apt-get install python-pip
[/bash]

2. Then using ‘pip’, install gmvault
[bash]
sudo pip install gmvault
[/bash]

3. Finally you can sync and backup GMail accounts with ‘gmvault
[bash]
gmvault sync your_username @ gmail.com
[/bash]

4. gmvault will ask you to authenticate yourselves with GMail, and after that, the syncronization process starts. gmvault stores all the gmail backup in the ‘gmvault-db‘ directory.

p/s: Some users encounters error telling that the “All Mail folder is not visible”. You can enable All Mail folder visibility by checking the “Show in IMAP” box in Settings->Labels. Also, IMAP access should also be enabled for this to work.

p/s 2: It might not be obvious right now why you need to backup your emails when Gmail has gigabytes of storage. But according to Gmail discussions group, Google can and might disable access to all of its services, locking the users out from their emails forever.

How to mount exFAT (used in SDcard / USB Drive) filesystem in Ubuntu

exFAT is a filesystem developed by Microsoft for use in flash drives or portable storage devices where the use of NTFS is not feasible. exFAT is inteded to be supported on consumer devices such as MP3 players, cameras, mobile phones and video recorders.

However filesystem formatted with exFAT are not currently supported by Ubuntu (as of 12.04) out from the box. In order to do that, you need to download exFAT filesystem module from relan PPA.

1. Add exFAT PPA repository

[bash]
sudo -s
apt-add-repository ppa:relan/exfat
[/bash]

2. Update apt-get repository
[bash]
apt-get update
[/bash]

3. Install exfat modules
[bash]
apt-get install fuse-exfat
[/bash]

That’s it you’re done! Then you can finally mounts exFAT filesystem using the following command….

4. mounting exFAT filesystem
[bash][/bash]
mount -t exfat /dev/sdd /media
[bash][/bash]

You should be able to mount exFAT filesystem from now on… the fuse-exfat also comes with ‘exfat-utils‘ package which enables the creation, checking and labelling exFAT filesystem.

iotop: How to monitor processes that hogs hard disk writes

iotop is a small and handy tool to monitor processes that hogs I/O resources. iotop outputs is similar to ‘top’ except it lists the hard disk read/write activity as well as swap writes.

You can use the left and write key to sort the heading according to your preference and the R key can be used to reverse the sort. The ‘O’ key is used when you only wants it to display processes that are currently utilizing the disk I/O. While the ‘P’ key can be used to display accumulated IO disk read/write for all the processes (which can be sorted with the arrow keys).

BlackBuntu – Ubuntu-flavored Linux Penetration Distro

Blackbuntu is a Ubuntu-based distro used for penetration testing and security auditing. Blackbuntu is designed to be used by students and practitioners who are interested in the field of information security.

Blackbuntu tools are divided into several categories:

  • Information Gathering
  • Network Mapping
  • Vulnerability Identification
  • Penetration
  • Privilege Escalation
  • Radio Network Analysis
  • VoIP Analysis
  • Digital Forensic
  • Reverse Engineering
  • Miscellaneous

Which includes these tools among others: Lanmap2, nmbscan, dnsmap, fierce, hostmap, ltrace, tctrace, sqlbrute, sqlmap,sqlninja, mysqloit, sqlcheck, wfuzz,xsser,xssploit,jmeter, nikto2,skipfish,wbox, autopsy,scalpel,mboxgrep,galetta,afstats, wepcrack,giskismet,fakeap,aircrack-ng,cowpatty,bluebugger,bluescan, bluesnarfer, iwar,protos-sip,sipcrack,brutessh,hydra,sshater

…and many more.

Blackbuntu can be downloaded from its official website – http://www.blackbuntu.com/

What to do when your Google disabled your Gmail account?

Recently I managed to get my gmail account disabled by Google. At first, I didn’t think that it would be a big deal since free email account can be registered every now and then, if it managed to get disabled/suspended.

gmail disabled

But…. It turns out I WAS WRONG.

See, when Google disabled a Gmail account, it also disabled all other accounts that associates with that account, including (but not limited to) :

  • Youtube (your videos will be inaccessible)
  • Blogger (all your blogs will be made inaccessible)
  • Google+
  • Google Play / Android Market (partially affects your Android phone and contacts, your paid apps will not be available)
  • Google Drive / Google Docs (you won’t be able to access your files /documents)
  • Google Code (loose access to your code repo)
  • And anything that is related to Google service

How does a Gmail account gets disabled ?

Officially Google states that each accounts holder must comply with Google Terms of Service.

Unofficially, there could be tons of reasons why Google disable a particular Google account, which includes:

  • Suspected partaking in spamming activity
  • Age factor (based on D.O.B data entered, those under 13yrs old aren’t allowed to use Google
  • Suspected using illegal credit card (in case of purchasing through Google Wallet or Google Pay)
  • When Google suspect that your account has been compromised
  • etc…

Anyway, they didn’t tell me exactly what I did and why they disabled my account (they tell me that they won’t disclose details to avoid their automated system from being compromised by hackers).

What they do is ask me when the last time I access my account, using which browser and what are the things that I do with my Google account recently before my account being disabled.

After that, within 24 hours, my account has been restored! So if you find yourselves in similar situation, then you should try get some help from Google Products (Gmail) forums. The people there are helpful, as long as you don’t get too emotional and push them too much.

Note that you should understands the Google Product Terms & Policy when you are using any Google Products. Because from what I’ve seen from the forum, there are also those who aren’t as lucky as I am, getting their accounts permanently disabled. Once it is permanently disabled, there are absolutely *ZERO* chances of recovering your precious data.

Be warned.