Skip to content

Posts from the ‘Own development’ Category

6
Aug

SimpleHtml5Editor – Just edit, no bullshit

During the development of the experimental branch in GrassCMS I found out that there are no bullshit-free wisywig html editors out there, as you might imagine, I just wanted a wisywig editor, as small as possible, to fucking edit text. Nothing more, just fucking edit text.

Turns out that If you look for minimalist wisywig editors you’ll get featureless and yet still huge stuffs, bloated with polyfils and fixes for older browsers. It’s almost inconceivable that a “light” editor weights more than 200k, a text editor, something as simple as that, and one, as I wanted it, to actually edit text, with only the stuff you’ll need!

You’d think that’s logical, hey, they’ve got to support older browsers don’t they? Well, I’ll tell you a secret:

Older browsers suck

I didn’t want to support older browsers from the begging, neither do you, or you’ll probably won’t be reading this, so, why did I have to use those extra hundreds of kilobytes?

I could not stop myself, I needed a wisywig editor so, why not doing one myself? And there It begun, I soon started a html5 wisywig editor, using contentEditable and document.execCommand, then I stablished four goals to the project:

  • Be pure html5
  • Not use jquery
  • less than 100 lines of coffescript
  • Nice, usable and featureful
So, In a few days I had it, an editor using the contentEditable and execCommand html5 features, built it as a  zeptojs plugin (a nice alternative to jquery that is like ten times smaller) and with almost all the stuff you need for text editing and all in less than 90 lines of coffescript

Check it out!

31
Jul

Dlive Airo – Your wireless pentesting resource

Even tought we can find lots of pentesting wiereless linux distros, we couldn’t find one that fits our needs in degeneratedlabs .
Those requisites were:

  • Updated kernel Drivers
  • Recent software (aircrack-ng subversion, recent distribution)
  • Easy to use (airoscript, debian-based)
  • Lightweight(no Gnome or KDE)
  • More usability, not only as a wireless auditory system, but as a complete distro.
  • Complete, not just an aircrack-ng oriented distro, but still a wireless-pentesting specific distro

Dlive

That way we started plannning dlive , a debian sid based livecd with its own pacakages (and debian repository ) with a lightweight desktop environment, and additional tools like pyrit, john the ripper or wireshark, plus a nice 3.4 kernel recently cooked in debian experimental.

Dlive’s star is airoscript-ng, the most recent release, with lots of renewed functionalities

More info

 

28
Feb

Exporting a subversion repository from a git repository using github

Ok, so, you want to quick-and-easily export your git repository as a subversion repository, the answer is pretty straightforward: Use github as an intermediary.
For it, you first will need to configure a github account and create a repository, that’s not the object of this article so you might want to dig up a little over the google seas. For this example, repository FooBar will be used, and repo.foobar.com will be the origin git.

First, we go to our own repo’s directory (a clone of your current repository’s), and add github proyect as remote, like this:

1 2 3 4
git clone git@repo.foobar.com/FooBar
cd FooBar
git remote add github git@github.com:XayOn/FooBar
# Remember to replace XayOn for your username and FooBar for your github repo name
view raw gistfile1.sh This Gist brought to you by GitHub.

Luckily, github exports automatically all its git repos as subversion, so, right now, you’re already able to execute:

svn co http://github.com/XayOn/FooBar

And there you have it, your git repo, exported as subversion, just keep the github repo updated with

git remote push github <branch>

											
25
Jan

Rstext.me restructuredtext slideshows on the cloud

I just made restructuredtext slideshow solution public, under the motto “Getting your slideshows done have never been so easy”.

” The best thing about it is that you can build nice, corporate-looking presentations in just seconds, concentrating in the information instead of the format or the style. We provide a lot of predefined themes, and will give corporate support for bussiness image templates”

David Francos

Rstext.me turns around our current concept of building a slideshow by providing a nice infraestructure to edit and store online your slideshows, in restructuredtext format (a widely used easy-to-read markup language).

You can visit it here

Source: http://blog.rstext.me

 

 

 

 

13
Jan

/foreach user_in [users] do [commands] in irssi

I just finished my implementation of foreach user_in for irssi.

There was out there a plugin to execute anything for each user in a channel window. I had the requirement to send information to a huge amount of that users (that is, a list of users from my bitlbee channel) but not to all the channel, so I said… Why not a foreach_user indo?

This way, I can, for example, do something like this:

/foreach user in friend_one friend_two friend_three /msg -bitlbee &bitlbee $0: Want a beer? 2100 at my place.
 /foreach user in contact_one contact_two friend_three /msg -bitlbee &bitlbee $0: Have you checked out my last proyect

For this, just download the script from my github and place it in .irssi/scripts/autorun so it will be auto-executed when starting irssi, and load it with:

/load autorun/foreach_user_in.pl

5
Jan

Adding socks5 support to python-irclib

I was playing with IRC and Proxyes a few weeks ago, and I found out that python’s irclib didn’t support them!
It took me like a minute or so to fix it, just overloading socket with socksocket, you can have a look at my fork in github

        try:
            import socks, os
            socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,
                os.getenv('proxy_addr'), os.getenv('proxy_port'))
            socket.socket = socks.socksocket
        except:
            pass

So, basically I try importing socks and setting up a default proxy, socks5 (sorry, I haven’t considered socks4 on there), with the environment variables proxy_addr and proxy_port as addr and port.

To use it, you’ll have to get a libirc-based application (there’s a bot included that might be a start) and, before starting it, define proxy_addr and proxy_port

proxy_addr=127.0.0.1; proxy_port=1080; python my_python-irclib_based_foo

Enjoy =)

12
Dec

Presentando MySocialStickers

Pegatinas de mis seguidores, con el nick y la imagen de perfil.

Pegatinas de mis seguidores, con el nick y la imagen de perfil.

Presentación

Presentamos MySocialStickers, tu nueva aplicación imprescindible para organizar eventos.

Con MySocialStickers puedes generar identificaciones para los asistentes a un evento basadas en información de twitter

Incluso puedes hacer tus propias tarjetas de visita!

Fuentes de datos

Twitter! De momento MySocialStickers soporta unicamente generar pegatinas en base a twitter. Puedes elejir entre las siguientes fuentes de datos:

  • Listas: Organiza eventos de la forma más sencilla
  • Seguidores: ¿Quieres organizar un evento y tienes una cuenta de twitter especifica para ello?
  • Amigos: ¡Regala MySocialStickers a tus amigos!
  • Busquedas: ¿Quieres algo de acción social? ¡Así nacio la idea de MySocialStickers!
  • Tu mismo: Presentate de la mejor manera posible.

Personaliza tus tarjetas o tus pegatinas!

Elije entre distintos tamaños predeterminados o inventa tu propio tamaño para tus MySocialStickers. Cambia el color, elije entre QR Code e imagen de perfil, nick o nombre real, puedes darle mil utilidades con cada opcion

Pegatinas sobre ti mismo, con el nick y un código QR

Pegatinas sobre ti mismo, con el nick y un código QR

Lo estrenaremos para el Salón del Comic de zaragoza, en el que, a cualquiera que lo pida via twitter con el hashtag #MySocialStickers, le entregaremos (en persona, pedidlas sólo si vais a venir) su pegatina con codigo QR completamente gratis!

 

Read moreRead more

17
Nov

Biibot, a bash bot based on II

I was on the IRC channel #debian-es-cachondeo yesterday, talking with @Kumul about II and his rc-based bot and I decided to show him the power of bash. In a few minutes I uploaded to my github a first version of what I think is a nice bot, configurable and scalable, with no useful features… But you can add your own!

First of all, let’s see what it does:

  • Manage multiple servers with independent channels
  • Enable-disable commands at runtime
  • Nice configuration file
  • Admin user ACL
  • Process management
Nice features for a 15 minutes made irc bot, aren’t they? =)
It manages multiple servers’ channels in a tricky manner. I’m going to lose a few moments trying to explain briefly this.
14
Nov

Building and installing airoscript

This has been tested on debian stable and testing

We’re going to  install the lastest version of airoscript, subversion one, as always, we need aircrack-ng among other stuff to get it working. Lastest version of airoscript requires aircrack-ng from subversion, so we’re going to install everything at the same time, including some nasty airoscript deps.
At the end of this article, you’ll find an script that will make everything for you.


Read moreRead more

5
Nov

Adding nessus support to airoscript

OpenVAS, THE framework for vulnerability scanning and management, is normally used via it’s standard GUI, but I recently discovered it provides a nice batch mode, wich I’ll be using in this post to add it to airoscript, and make a little independient TUI for it.

OpenVAS strcutrue. Source: wikimedia commons

I know that plugins on airoscrip-ng are making it grow bigger than it should, this plugin isn’t even going to enter airoscript-ng on trunk. It’s just an example, for both OpenVAS batch usage and airoscript plugin making (making them portable)

I’m planning on making a simple  jabashit based interface to independently load airoscrit-compatible plugins, so that problem will be solved. Then, let’s have a look at the idea of having OpenVAS in airoscript via plugin, it’s fair simple:

enabled_plugins+="Scan selected client with OpenVAS"
wait_for_openvasd() {
    while [ "1" ]; do  ps aux|grep "openvasd: waiting for incoming connections" && break ; done
}

openvas_autodetect_hosts(){
    # Ok, this is not nice for this post, so for now I'll let it unimplemented.
}

rootify(){
    # So we are not forced to be root, and made it compatible with ubuntu and debian bot sudo and su.
    [[ $UID == 0 ]] && { $@; } || { [[ type -f sudo ]] && sudo $@ || su -c "$@"; }
}

yesno(){
    read -p "$@" ans
    [[ $ans ~= "y" ]] && return 0 || return 1
}

check_dump_path(){
    [[ -n $DUMP_PATH ]] && return 0 || return 1
}

Scan_selected_client_with_OpenVAS(){
    check_dump_path || DUMP_PATH="./"
    yesno "Have you already configured wireless interface?" || configure

    yesno "Autodetect hosts? (If not, you'll be asked to enter them)" && {
        openvas_autodetect_hosts
    } || {
        echo -e "Enter list of hosts, one line each, end with EOF"
        cat << EOF > $DUMP_PATH/available_hosts
    }

    pgrep openvasd || rootify "openvasd &>$DUMP_PATH/openvasd_log &"

    wait_for_openvasd && {
        read -p "Enter username: " user
        read -p "Enter password: " pass
        openvas-client -T html_graph -x -q localhost 9390 $user $pass $DUMP_PATH/available_hosts $DUMP_PATH/OpenVAS_results
    }
}

Let’s explain this a little. I’ve made a wait_for_openvasd function, wich will wait until openvas sais it’s waiting for incoming connections, so we can safely launch openvasd, then this and if this is successfull openvas-client.

The other two functions, yesno and check_dump_path are for airoscript-ng compatibility. So that right now, you can source that file wherever you want and execute  Scan_selected_client_with_OpenVAS and it will work.

I’ll be launching openvas-client in batch mode, without human interaction, and return results in HTML. If you’re in a configured interface, and with a file “Hosts” with all the hosts you want to test, you’d want to use this command:

pgrep openvasd || openvasd &> log &
wait_for_openvasd && openvas_client -T html_graph -x -q localhost 9390 YOUR_USER YOUR_PASS ./Hosts OpenVAS_results.html && x-www-browser OpenVAS_results.html

And you’ll get a nice graph opened in your web browser.