Última atualização: 08/Aug/2012 RSS
A A A
Home...

Not&icute;cia

Palestra no FISL 13: Como implementar autenticação e segurança de 2º Fator com Software Livre

Oi pessoal, abaixo está o pdf da palestra que ministrei no último FISL (13).
[http://dcon.com.br/jd.comment/fisl13-palestra.pdf]
(08.08.2012)

Comment! 

Not&icute;cia

Open-Source PSKC file Builder

This is a “Portable Symmetric Key Container” (PSKC) XML Builder written in Java

A really basic implementation of RFC6030 ( [http://tools.ietf.org/html/rfc60308] ).

The idea is to build a small application that generates PSKC xml file based on a txt file with only token serial numbers and its seeds in a HEX string.

The source code can be found @ [https://github.com/damico/PskcBuilder]

Enjoy!
(18.07.2012)

Comment! 

Not&icute;cia

Arduino OATH Token

From arduino-oath-token


This is a basic Open-Source implementation of a TOTP (compliant with OATH http://www.openauthentication.org/) code in Arduino.

Basicaly it generates 6 digits OTP based in a EPOCH time stored in a variable called birthTime There is no time drift. The OTP is updated each 30 or 60 seconds.

For HMAC-SHA1 hash this implementation uses the code from Cathedrow / Cryptosuite (https://github.com/Cathedrow/Cryptosuite). However a small change was added to sha1.h and sha1.c: The method size_t Sha1Class::writebytes(const uint8_t* data, int length)

For debug purposes the main important functions are printed to serial output. The entire source-code can be found @ https://github.com/damico/ARDUINO-OATH-TOKEN

This small project was built in order to explain how to implement a OATH token with only open-source tools. Also, this project will be presented at International Free Software Forum (FISL13 http://softwarelivre.org/fisl13/about-the-event)

Also there are two small videos about this project:




(14.07.2012)

Comment! 

Not&icute;cia

XTAL Tester

xtal tester circuit by jdamico

Some days ago I was trying to test a XTAL of 11Mhz with a friend of mine at my home lab. When the xtal was placed in a complete circuit we just attached the scope proof points and we are were able to see the correct measurement at screen of scope. But when the xtal was apart of a circuit we did not find a way to test it. We had two objectives: A fast way to test a xtal to see if it is working or not; A way to measure the exact frequency of it;

To acomplish this task, I've searched over the web for xtal test circuits. Then I found one published by Tony van Roon (VA3AVR) in his very useful/cool site.

How it works:

Transistor Q01, a NPN 2N3904, and its associated components form an oscillator circuit that will oscillate if, and only if, a good crystal is connected to the test clips. The output from the oscillator is then rectified by the 1N4148 signal diode and filtered by C03, a 100pF capacitor. The positive voltage developed across the capacitor is applied to the base of Q02, another 2N3904, causing it to conduct. When that happens, current flows through Led01, causing it to glow. Since only a good crystal will oscillate, a glowing LED indicates that the crystal is indeed OK.

The circuit works very well with 6 - 8Mhz crystals, but for higher frequency crystals (11Mhz) the LED glows very weak. For that reason I've added a 1k potentiometer to enable the adjust of LED's resistance.

In order to test this circuit with oscilloscope, just use the proof points in the where the crystal is connected (see the images bellow).

I've drawn the circuit with gEDA (xtal-tester-jdamico.sch)

xtal tester circuit by jdamico

Here are some images of the building process:

xtal tester circuit by jdamico

xtal tester circuit by jdamico

xtal tester circuit by jdamico

xtal tester circuit by jdamico

xtal tester circuit by jdamico

(26.03.2012)

Comment! 

Not&icute;cia

About CDCIBER:

“Centro de Defesa Cibernética do Exército” in portuguese, which means Center of Cybernetic Defense of Army. It is a Brazilian army initiative (inspired in other cyber-defense agencies from other countries) with some important functions:

- Research in IT Security
- Defense through information systems
- Eventual counter-attacks

Some key arguments (learned from outside experiences) for creation of CDCiber were:

- 9/11 (Several documents stolen from industries and government, which were used to plan the terrorist act.)
- Chinese and Russian cyber attacks against other countries
- Stuxnet: Domain-driven malwares
- Wikileaks: The amount of confidential documents from government leaked and exposed in Wikileaks, reveled a weakness in the efforts to protect sensitive data.
- Brazil growth: More exposure of brazilian market, natural resources as well as some important companies as Petrobras and Compania Vale do Rio Doce, among others.
- Coordinated attacks from LulzSec and Anonymous

Differential* aspects over other/common defense centers:

Ability to find in market, professionals/consultants which required skills to work in the center
Low cost of infrastructure, when compared with common defense centers

*The same differential aspects are used to companies and criminals to build its own defense centers. Therefore these aspects are also a strong argument to build de CDCiber. (23.03.2012)

Comment! 

Not&icute;cia

Playing around with my own Operating System in asm: DamIX

Hi guys,

I would like to share with you my first results writing my own Operating System in ASM.

my own os

DamIX, is a 16bit OS, runs in a floppy disk, in a 64KB segment and a FAT12 fs.

(10.01.2012)

Comment!View Comments

Not&icute;cia

XOR Symmetry

Hi all,

Studying the basics of cryptography using XOR I've decided to to design some XOR graphical representation, as several that we can find in the Web (http://en.wikipedia.org/wiki/Xor). The result can be seen bellow. It is very interesting to see the symmetry of result.

graphic xor

Also the source code is available at: http://damico.github.com/XorGraphicSymmetry/

See you.



(03.01.2012)

Comment! 

Not&icute;cia

Parceria entre Intel e InfoSERVER S/A traz recursos de segurança embarcados no processador

Através da criação do "Identity Protection Technology", IPT, a Intel passa a oferecer em seus processadores i3, i5 e i7 (2a. geração) e posteriormente nos Ultrabooks uma série de recursos de segurança. Tais recursos estão embarcados em uma área do processador chamada de Management Engine (ME). Essa área pode ser acessível através do bus PCI por meio de um Firmware embarcado na BIOS e um driver. Dessa forma diversos algoritimos de gerenciamento de senhas, proteção de identidade e autenticação de transações, que normalmente são feitos via software dependentes do sistema operacional, podem agora ser transferidos para para execução interna no ME dentro do processador e assim garantir a inviolabilidade desses algoritmos. Além disso somente algoritmos assinados por certificados reconhecidos pela Intel poderão rodar nessa área do processador.

Para que os usuários comuns possam se beneficiar dessa tecnologia em acesso a bancos, lojas eletrônicas, redes sociais, etc, essas empressas precisarão que seus sistemas de segurança e autenticação sejam atualizados para funcionar nesse novo padrão. Para isso a Intel estabeleceu parceria com a InfoSERVER S/A para o desenvolvimento de soluções que permitam a integração do mercado.

Para maiores informações:

[http://www.infoserver.com.br/olhar_digital/olhar_digital.asp]
[http://www.infoserver.com.br/idf.asp]
[http://www.infoserver.com.br/ipt/default2.asp]

(16.11.2011)

Comment! 

Not&icute;cia

How to trace WebServices conversation with Wireshark

Create a filter like this:

ip.addr==10.1.1.2 && ip.addr==10.1.1.3 and http and xml

It will trace all http/xml conversation between 10.1.1.2 and 10.1.1.3 both as src and destination.

See you!



(24.10.2011)

Comment! 

Not&icute;cia

Java NIO PDF Documents, Presentations and Books references

A friend of mine asked me for Java NIO PDF Documents, Presentations and Books references.

Here is what I have:

- Advanced JavaTM NIO Technology-Based Applications Using the Grizzly Framework
- A Programmer’s Tutorial on Event-Driven Programming, Asynchronous Input/Output, and the Bamboo DHT
- A Study of Java Networking Performance on a Linux Cluster
- Getting started with NIO
- How to Build a Scalable Multiplexed Server With NIO Mark II
- Improving Java Network Programming
- Introduction to NIO: New I/O
- Java NIO
- JAVA NIO FRAMEWORK Introducing a high-performance I/O framework for Java
- Multiple Client Server and Java New-IO (nio) classes
- New I/O in JDK 7
- Scalable IO in Java
- Using the new Java I/O interface in parallel computing

All files are inside this compressed file: [http://dcon.com.br/jd.comment/java-nio-docs.7z]

See you...



(21.10.2011) http://dcon.com.br/jd.comment/java-nio-docs.7z

Comment! 

Not&icute;cia

Presentation Control usign ez430 Chronos Clock in Linux

Hi all,

This is a small implementation of OpenOffice/LibreOffice Impress remote control by Texas Instruments ez430 Chronos Clock in Linux environment.

It was written in Python and also uses xdotool. All steps were commented.

[http://dcon.com.br/jd.comment/chronosImpressControl.txt]

Feel free to use, distribute and modify.

Best Regards,

Damico
(05.10.2011) http://dcon.com.br/jd.comment/chronosImpressControl.txt

Comment! 

Not&icute;cia

SQL1084C Shared memory segments cannot be allocated. SQLSTATE=5

The situation:

db2 => connect to dbname
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=5

In Linux, increase the number of following kernel parameters:

kernel.shmmax=15099494000 #Almost the total of RAM Memory, in this case 16GB
kernel.shmall=8099494000 #Half of total of RAM Memory

These parameter must be set at: /etc/sysctl.conf file.

To test if the parameters were accepted issue the command:

#sysctl -p

The response should be something like this:

kernel.sem = 1024
kernel.msgmni = 1024
kernel.shmmax = 15099494000
kernel.shmall = 8099494000


See you!

(12.09.2011)

Comment! 

Not&icute;cia

Why / Why not move/switch to GIT?

Some urls to clarify your decision:

[http://maratux.blogspot.com/2009/03/microsoft-uses-git-for-version-control.html]
[http://amplicate.com/hate/git]
[http://markmcb.com/2008/10/18/3-reasons-to-switch-to-git-from-subversion/]
[http://thinkvitamin.com/code/why-you-should-switch-from-subversion-to-git/]
[http://markwaite.blogspot.com/2009/11/was-our-switch-to-git-mistake.html]
[http://joemaller.com/907/switching-to-git/]
[http://ellislab.com/blog/comments/ellislab_switches_to_git_moves_to_github]
[http://blog.extracheese.org/2010/05/why-i-switched-to-git-from-mercurial.html]
[http://blogs.enterprisedb.com/2010/10/28/why-postgres-switched-to-git/]



(08.09.2011)

Comment! 

Not&icute;cia

Exemplo de Lambda Expression Tree em C# (C sharp)

Conforme solicitado pelos alunos, segue o link com o exemplo do Exemplo de Lambda Expression Tree em C# (C sharp)

[http://dcon.com.br/jd.comment/csharp/ExpressionTreeLambda.zip]

(24.08.2011)

Comment! 

Not&icute;cia

The Rail Fence Cipher - Basic Transposition Cryptography

Java Implementation: [http://dcon.com.br/jd.comment/c-sharp-railfence.cs]

C# Implementation: [http://dcon.com.br/jd.comment/java-railfence.java]


(21.07.2011)

Comment! 

Not&icute;cia

Texas MSP430 Chronos Watch - A cool toy!

video platformvideo managementvideo solutionsvideo player
More info at http://www.ti.com/chronoswiki
(19.07.2011)

Comment! 

Not&icute;cia

Python tools for penetration testers

Network

  • Scapy: send, sniff and dissect and forge network packets. Usable interactively or as a library
  • pypcap, Pcapy and pylibpcap: several different Python bindings for libpcap
  • libdnet: low-level networking routines, including interface lookup and Ethernet frame transmission
  • dpkt: fast, simple packet creation/parsing, with definitions for the basic TCP/IP protocols
  • Impacket: craft and decode network packets. Includes support for higher-level protocols such as NMB and SMB
  • pynids: libnids wrapper offering sniffing, IP defragmentation, TCP stream reassembly and port scan detection
  • Dirtbags py-pcap: read pcap files without libpcap
  • flowgrep: grep through packet payloads using regular expressions
  • httplib2: comprehensive HTTP client library that supports many features left out of other HTTP libraries
  • Knock Subdomain Scan, enumerate subdomains on a target domain through a wordlist
  • Mallory, man-in-the-middle proxy for testing
  • mitmproxy: SSL-capable, intercepting HTTP proxy. Console interface allows traffic flows to be inspected and edited on the fly

Debugging and reverse engineering

  • Paimei: reverse engineering framework, includes PyDBG, PIDA, pGRAPH
  • Immunity Debugger: scriptable GUI and command line debugger
  • IDAPython: IDA Pro plugin that integrates the Python programming language, allowing scripts to run in IDA Pro
  • PyEMU: fully scriptable IA-32 emulator, useful for malware analysis
  • pefile: read and work with Portable Executable (aka PE) files
  • pydasm: Python interface to the libdasm x86 disassembling library
  • PyDbgEng: Python wrapper for the Microsoft Windows Debugging Engine
  • uhooker: intercept calls to API calls inside DLLs, and also arbitrary addresses within the executable file in memory
  • diStorm64: disassembler library for AMD64, licensed under the BSD license
  • python-ptrace: debugger using ptrace (Linux, BSD and Darwin system call to trace processes) written in Python

Fuzzing

  • Sulley: fuzzer development and fuzz testing framework consisting of multiple extensible components
  • Peach Fuzzing Platform: extensible fuzzing framework for generation and mutation based fuzzing
  • antiparser: fuzz testing and fault injection API
  • TAOF, including ProxyFuzz, a man-in-the-middle non-deterministic network fuzzer
  • untidy: general purpose XML fuzzer
  • Powerfuzzer: highly automated and fully customizable web fuzzer (HTTP protocol based application fuzzer)
  • FileP: file fuzzer. Generates mutated files from a list of source files and feeds them to an external program in batches
  • SMUDGE
  • Mistress: probe file formats on the fly and protocols with malformed data, based on pre-defined patterns
  • Fuzzbox: multi-codec media fuzzer
  • Forensic Fuzzing Tools: generate fuzzed files, fuzzed file systems, and file systems containing fuzzed files in order to test the robustness of forensics tools and examination systems
  • Windows IPC Fuzzing Tools: tools used to fuzz applications that use Windows Interprocess Communication mechanisms
  • WSBang: perform automated security testing of SOAP based web services
  • Construct: library for parsing and building of data structures (binary or textual). Define your data structures in a declarative manner
  • fuzzer.py (feliam): simple fuzzer by Felipe Andres Manzano
  • Fusil: Python library used to write fuzzing programs

Web

  • ProxMon: processes proxy logs and reports discovered issues
  • WSMap: find web service endpoints and discovery files
  • Twill: browse the Web from a command-line interface. Supports automated Web testing
  • Windmill: web testing tool designed to let you painlessly automate and debug your web application
  • FunkLoad: functional and load web tester

Forensics

  • Volatility: extract digital artifacts from volatile memory (RAM) samples
  • SandMan: read the hibernation file, regardless of Windows version
  • LibForensics: library for developing digital forensics applications
  • TrIDLib, identify file types from their binary signatures. Now includes Python binding

Malware analysis

  • pyew: command line hexadecimal editor and disassembler, mainly to analyze malware
  • Exefilter: filter file formats in e-mails, web pages or files. Detects many common file formats and can remove active content
  • pyClamAV: add virus detection capabilities to your Python software
  • jsunpack-n, generic JavaScript unpacker: emulates browser functionality to detect exploits that target browser and browser plug-in vulnerabilities
  • yara-python: identify and classify malware samples

PDF

  • Didier Stevens' PDF tools: analyse, identify and create PDF files (includes PDFiD, pdf-parser and make-pdf and mPDF)
  • Opaf: Open PDF Analysis Framework. Converts PDF to an XML tree that can be analyzed and modified.
  • Origapy: Python wrapper for the Origami Ruby module which sanitizes PDF files
  • pyPDF: pure Python PDF toolkit: extract info, spilt, merge, crop, encrypt, decrypt...
  • PDFMiner: extract text from PDF files
  • python-poppler-qt4: Python binding for the Poppler PDF library, including Qt4 support

Misc

  • InlineEgg: toolbox of classes for writing small assembly programs in Python
  • Exomind: framework for building decorated graphs and developing open-source intelligence modules and ideas, centered on social network services, search engines and instant messaging
  • RevHosts: enumerate virtual hosts for a given IP address
  • simplejson: JSON encoder/decoder, e.g. to use Google's AJAX API
  • PyMangle: command line tool and a python library used to create word lists for use with other penetration testing tools
  • Hachoir: view and edit a binary stream field by field

Other useful libraries and tools

  • IPython: enhanced interactive Python shell with many features for object introspection, system shell access, and its own special command system
  • Beautiful Soup: HTML parser optimized for screen-scraping
  • matplotlib: make 2D plots of arrays
  • Mayavi: 3D scientific data visualization and plotting
  • RTGraph3D: create dynamic graphs in 3D
  • Twisted: event-driven networking engine
  • Suds: lightweight SOAP client for consuming Web Services
  • M2Crypto: most complete OpenSSL wrapper
  • NetworkX: graph library (edges, nodes)
  • pyparsing: general parsing module
  • lxml: most feature-rich and easy-to-use library for working with XML and HTML in the Python language
  • Pexpect: control and automate other programs, similar to Don Libes `Expect` system
  • Sikuli, visual technology to search and automate GUIs using screenshots. Scriptable in Jython
  • PyQt and PySide: Python bindings for the Qt application framework and GUI library
(07.07.2011)

Comment! 

Not&icute;cia

JAmtConnector an OpenSource AMT/vPro connector

JAmtConnector is an OpenSource application (written in Java), release under Eclipse Public License,  that can connect an collect data from vPro machines over network. It uses web-services for communication and works with machines that has AMT version >= 3.0. The software was built based on Intel® WS-Management Java Client Library.

This software also can be useful for who want to learn how to implement AMT resources through Java and Web-Services.

This application, works in Command-Line Interface (CLI) and also in desktop. See the example bellow:

  • $ java -jar JAmtConnector.jar input.xml output.xml
Notice that there are 2 parameters after jar file: input.xml and output.xml

The first parameter is the an xml file that contains the vPro computers to be monitored.

<?xml version="1.0" encoding="UTF-8"?>
<jamtconnector>
<asset hostname="computer1" ip="10.1.1.1" user="admin" passwd="#####" />
<asset hostname="computer2" ip="10.1.1.2" user="admin" passwd="#####" />
</jamtconnector>


The second parameter is the filename that will be created with a report of all collected data from machines described in the input.xml

CLI Interface

The desktop version uses the same concept:

Desktop Interface

Binaries and source-code can be found at SourceForge: http://sourceforge.net/projects/jamtconnector/

Feel free to use and contribute.
(02.06.2011)

Comment! 

Not&icute;cia

Tools for Windows Programmer

If you really need to program in a Windows environment, these tools will help you:
DebugView: DebugView is an application that lets you monitor debug output on your local system, or any computer on the network that you can reach via TCP/IP
WinBash: win-bash is a windows port of the famous GNU bash
Notepad++: Full-feature programmer notepad
PowerShell: Windows set of shell utilities
SysInternals: Set of OS utilities for Windows
Firefox + Firebug: Mozilla-based browser with firebug extension for javascript, html and css debug
Google Chrome: Another browser for compatibility and profiling test
Opera: Another browser for compatibility and profiling test
Wireshark: A powerfull tool for network packet sniffing
Apache Http Server: Webserver
SQLFront: Fast and powerfull multi-database client
DBjmin: Another fast and small multi-database client
Filezilla: FTP client and server (Windows/Linux)
7zip: Powerfull and complete archive/compression tool
VirtualBox: Opensource Virtual Machine manager
Putty: Windows SSH/Telnet client
VNC: Remote desktop client and server
WinTail: Windows tail program, like Unix tail command
Sumatra: Very light and fast pdf reader
Zenmap: Powerfull network mapper
Gimp: Image Editor
Pinta: Image Editor
Inkscape: Vector (SVG) graphic editor
Pidgin: IM multi-client
TotalCommander: File manager replacement for Windows 95/98/NT/2000/XP/Vista/7
Beaker CPU Meter: A simple and readable CPU and RAM meter styled like a couple of graduated beakers colored according to the current value. (Widget)
Sushi's DriveInfo: Info about drives/disks utilization (Widget)
Dadografo: Data transfer meter (Widget)
Cygwin: A collection of tools which provide a Linux look and feel environment for Windows.
dotPeek: .NET decompiler
JD-GUI: Standalone graphical utility that displays Java source codes of “.class” files.
InnoSetup: Powerful, easy-to-use and free Windows Installer
Filezilla: A great FTP/SFTP client and server
MinGW: MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.
TortoiseSVN: A Subversion client, implemented as a windows shell extension. TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. Since it's not an integration for a specific IDE you can use it with whatever development tools you like. TortoiseSVN is free to use. You don't need to get a loan or pay a full years salary to use it.
(27.05.2011)

Comment! 

Not&icute;cia

How to backup your Android before a rootkit installation?

Applications/System Backup
AppManager: [http://www.androidtapp.com/appmanager/]

Data/Contacts/Messages Backup
BackupMaster: [http://pt.appbrain.com/app/backup-app/com.Backupmaster]


(06.05.2011)

Comment! 


Ver todas as publicações









powered by: DCON Tecnologia da Informação Ltda.