phillips321.co.uk

pen testing, security and linux

  • Home
  • About Me
  • bt5-fixit.sh
  • GnackTrack
  • Metasploit Notes
  • pentest.sh

pyplot

python Character Frequency Analysis

Published August 7, 2013 | By phillips321

So I wanted to identify quickly character frequency in a text file and quickly throw this out as a bar chart.

As I enjoy python it made sense to code it in python. The bar chart uses the pyplot bits from matplotlib.

It was also important to import collections because dictionaries are unordered and the bar chart would not display in alphabetical order.

12345C:\Users\phillipsme\Desktop\python>python.exe charfreqency.py cipher.txt OrderedDict([('a', 135), ('b',… Continue reading →
Posted in Uncategorized | Tagged analysis, character, collections, dictionary, ordered, pyplot, python | Leave a comment
Follow @phillips321

Recent Posts

  • Automating an Active Directory Audit in PowerShell
  • CherryTree on MacOS (OSX)
  • IPv6 LocalLink to IPv4 scanning tool
  • NetKit IPv6 Test Lab
  • WiPiResponder = Pi Zero W + Responder
  • Recovering an activity from a Garmin 920 XT Forerunner
  • hashcat on OS X – getting it going!
  • PHP NMAP Scan Page
  • Hacking the ATN X-sight – part1
  • NFSShell on Kali Linux 2.0

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Links

  • 0entropy
  • BruteForce Lab's Blog
  • carnal 0wnage
  • DarkOperator
  • Extra
  • grm n00bs
  • Hack Whack and Smack
  • IronGeek
  • Night Slayer
  • pentest-n00b
  • PenTesticles
  • room362
  • ScriptMonkey

Please feel free to share my content but always link back here :-)