File: w3mstracetodump

package info (click to toggle)
hippotat 1.2.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: sh: 423; makefile: 130; perl: 84; python: 79; ansic: 34
file content (15 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -n

# strace -s70000 -ot w3m ./form.html

next unless
    (m/^connect\((\d+),.*AF_INET/ and $fd = $1) ..
    m/^close\($fd\)/;

next unless s{^write\($fd, "}{};
s{", \d+\)\s+= \d+\n}{};
s{\\r}{\r}g;
s{\\n}{\n}g;
s{\\(.)}{$1}g;
print or die $!;