Better HN
topnewbestaskshowjobs
Log inSign up

pea-tear

200 karma · joined Dec 17, 2012 (13y ago) · 29 submissions

Submissions

comment 1y ago · link · parent

Yeah, I'd love to not rely on an npm package but it's unfortunately the only way to do this out of the box.

comment 1y ago · link · parent

Yes, unfortunately mermaid requires not only node but also a browser instance (!!). I don't like it at all but I don't think there's any alternatives. If you or anyone knows a way of avoiding installing a javascript package to do this please create an issue in the repo!

comment 1y ago · link · parent

I would love to hear specifics on how you couldn't get the layout looking how you wanted it to. e.g. do you have a link to the presentation you did? Feel free to shot me an email at gmail, it's easily findeable online.

comment 1y ago · link · parent

Mermaid is already supported natively, meaning the mermaid diagram output is rendered as actual images; no need for ascii diagrams https://mfontanini.github.io/presenterm/features/code/mermai...

comment 1y ago · link · parent

iterm2 and wezterm are well supported as well!

comment 1y ago · link · parent

See the sibling comment. This is a new protocol that the kitty maintainer created and is supported as of kitty 0.40.0, which was just released yesterday. This makes presentations look much more presentation-like now!

7.

Presenterm: Markdown Slideshows in the Terminal(github.com ↗)

306 points · by pea-tear · 1y ago · 45 comments

comment 2y ago · link · parent

I built presenterm (https://github.com/mfontanini/presenterm). Also a terminal based presentation tool which uses markdown, and supports images, PDF exports, etc.

9.

Presenterm: A Terminal Slideshow Tool(github.com ↗)

3 points · by pea-tear · 3y ago · 1 comment

10.

Detecting and classifying template callback types in C++(mfontanini.github.io ↗)

2 points · by pea-tear · 9y ago · discuss

comment 9y ago · link · parent

Developer here. There's alternatives that don't throw but the example is mostly so people look at it and say "ah, cool, this is actually simple to use". I normally still use this throw-version of doing things when I just need to quickly do something, as in reality in most cases I don't care about performance for specific 10 line code snippets.

If you want to do things right, you can read the docs and use the appropriate API call (like using the non throwing PDU::find_pdu, use bpf filters, etc).

12.

Reassembling TCP streams using libtins(libtins.github.io ↗)

3 points · by pea-tear · 10y ago · discuss

comment 11y ago · link · parent

libpcap does support it. As for Winpcap, I don't know.

Yes, libtins uses libpcap to capture packets (and also to send, if you're using Windows), so basically if winpcap supports it, then it should work on libtins.

comment 11y ago · link · parent

I haven't compared the performance of gopacket. I'll add that to my to-do list!

comment 11y ago · link · parent

This library uses libpcap to capture packets/read them from a pcap file. When you sniff using libpcap you just get a pointer to the packet and the packet size, you then have to parse the packet appropriately to do something useful with it.

What libtins adds is the ability to parse and assemble packets easily. Parsing is automatic, so you won't need to be checking protocol fields to determine how to parse it: it will all be handled by the library.

16.

Libtins v3.2: a fast C++ packet sniffing and crafting library(libtins.github.io ↗)

2 points · by pea-tear · 11y ago · discuss

comment 12y ago · link · parent

That would be great! I think that adding more libraries to the benchmark would be just great. This is the project I've created to run the benchmarks:

https://github.com/mfontanini/packet-capture-benchmarks

You can have a look at some of the existing benchmarks so you get an idea of what it has to do. Let me know if you need any help.

comment 12y ago · link · parent

I've managed to compile it on Windows using Visual Studio. It's in my TODO list to write a tutorial on the site on how to do so. Hopefully I'll do that on the next few days.

comment 12y ago · link · parent

You can't drop the original traffic using the library. You could capture it, modify it and send it though. That + some iptables rules to drop the original traffic would be sufficient I guess.

comment 12y ago · link · parent

Yes, there's a small tutorial section on how to implement new protocols:

http://libtins.github.io/tutorial/new_protocols/

comment 12y ago · link · parent

I started this project with a colleague near the end of 2012, and I've continued development on my own since 2013. The first months of development implied a lot of work, but then just a couple of hours a week to fix bugs or improve some mechanisms.

22.

Libtins v3.0: A fast C++ packet sniffing and crafting library(libtins.github.io ↗)

85 points · by pea-tear · 12y ago · 14 comments

23.

Exploiting a code execution in JomSocial (average-coder.blogspot.com ↗)

1 points · by pea-tear · 12y ago · discuss

24.

Libtins, a fast C++ packet sniffing and crafting library, v2.0 released(libtins.github.io ↗)

1 points · by pea-tear · 12y ago · discuss

25.

Creating a simple and fast packet sniffer in C++(average-coder.blogspot.com ↗)

13 points · by pea-tear · 13y ago · 1 comment

26.

On-the-fly WEP/WPA2 decrypter, forwards decrypted traffic to another interface(average-coder.blogspot.com ↗)

2 points · by pea-tear · 13y ago · discuss

27.

On-the-fly WEP/WPA2 decrypter, forwards decrypted traffic to a virtual interface(github.com ↗)

3 points · by pea-tear · 13y ago · discuss

28.

Libtins v0.3 released, a fast C++ network packet crafting and sniffing library(libtins.sourceforge.net ↗)

2 points · by pea-tear · 13y ago · discuss

comment 13y ago · link · parent

That's what this app does, it uses LD_PRELOAD to perform keylogging on both non-suid and suid apps.