Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HAProxy rc and some old versions #3233

Closed
witchcraze opened this issue Sep 16, 2024 · 0 comments · Fixed by #3277
Closed

Support HAProxy rc and some old versions #3233

witchcraze opened this issue Sep 16, 2024 · 0 comments · Fixed by #3277
Labels
binary-analysis enhancement New feature or request

Comments

@witchcraze
Copy link
Contributor

witchcraze commented Sep 16, 2024

What would you like to be added:

Support rc and some old versions of HAProxy in binary detection

  • 1.8-rc
  • 2.0-dev4-7
  • 2.0-rc
  • 2.0.0-2.0.14, 2.0.16-2.0.17
  • 2.1.0-2.1.4, 2.1.7-2.1.8
  • 2.2-dev5-12
  • 2.2rc
  • 2.2.0-2.2.2
  • 2.3-dev0-3
  • 2.3-rc

Additional context:

1.8-rc

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version 1.8-rc4-cfe1466 2017/11/19
Copyright 2000-2017 Willy Tarreau <[email protected]>
Usage : %s [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]

$ strings haproxy | grep -C 2 -e '1\.8-rc'
%06x
HAProxy
1.8-rc4-cfe1466
2017/11/19
%ud %uh%02um%02us
--
</tr>
Choose the action to perform on the checked servers : <select name=action><option value=""></option><option value="ready">Set state to READY</option><option value="drain">Set state to DRAIN</option><option value="maint">Set state to MAINT</option><option value="dhlth">Health: disable checks</option><option value="ehlth">Health: enable checks</option><option value="hrunn">Health: force UP</option><option value="hnolb">Health: force NOLB</option><option value="hdown">Health: force DOWN</option><option value="dagent">Agent: disable checks</option><option value="eagent">Agent: enable checks</option><option value="arunn">Agent: force UP</option><option value="adown">Agent: force DOWN</option><option value="shutdown">Kill Sessions</option></select><input type="hidden" name="b" value="#%d">&nbsp;<input type="submit" value="Apply"></form>
 version 1.8-rc4-cfe1466, released 2017/11/19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
--
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version 1.8-rc4-cfe1466 2017/11/19
Copyright 2000-2017 Willy Tarreau <[email protected]>
Usage : %s [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]

2.0-dev4

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Usage : %s [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
        [ -p <pidfile> ] [ -m <max megs> ] [ -C <dir> ] [-- <cfgfile>*]

$ strings haproxy | grep -C 2 -e '2\.0-dev'
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~
 !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
 version 2.0-dev4, released 2019/05/22
2019/05/22
2.0-dev4
%sparsing [%s:%d] : '%s' expects an integer argument.
%sparsing [%s:%d] '%s' : invalid value %d, must be >= 0

2.0.0

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Usage : %s [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
        [ -p <pidfile> ] [ -m <max megs> ] [ -C <dir> ] [-- <cfgfile>*]

$ strings haproxy | grep -C 2 -e '2\.0\.0'
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~
 !"#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
 version 2.0.0, released 2019/06/16
2019/06/16
2.0.0
%sparsing [%s:%d] : '%s' expects an integer argument.
%sparsing [%s:%d] '%s' : invalid value %d, must be >= 0```

2.1.0

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2021.
Known bugs: https://github.com/haproxy/haproxy/issues?q=is:issue+is:open
--
Total number of connections.
Product name.
HAProxy version.
HAProxy realease date.
Configured number of threads.
--
2019/11/25
2.1.0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0
 6      L

$ strings haproxy | grep -C 2 -e '2\.1\.0'
unix_stream
sockpair
 version 2.1.0, released 2019/11/25
2019/11/25
2.1.0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0

2.2-rc

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Status: development branch - not safe for use in production.
Known bugs: https://github.com/haproxy/haproxy/issues?q=is:issue+is:open
--
Total number of connections.
Product name.
HAProxy version.
HAProxy release date.
Configured number of threads.
--
2020/07/04
2.2-dev12
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0
@@!$

$ strings haproxy | grep -C 2 -e '2\.2-dev'
tcpv4
sockpair
 version 2.2-dev12, released 2020/07/04
2020/07/04
2.2-dev12
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0

2.2.0

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Status: long-term supported branch - will stop receiving fixes around Q2 2025.
Known bugs: https://github.com/haproxy/haproxy/issues?q=is:issue+is:open
--
Total number of connections.
Product name.
HAProxy version.
HAProxy release date.
Configured number of threads.
--
2020/07/07
2.2.0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0
@@!$

$ strings haproxy | grep -C 2 -e '2\.2\.0'
tcpv4
sockpair
 version 2.2.0, released 2020/07/07
2020/07/07
2.2.0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0

2.3-rc

$ strings haproxy | grep -C 2 'Proxy version'
SIGHUP: Proxy %s %s ! Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
SIGHUP: Proxy %s has %d active servers and %d backup servers available. Conn: act(FE+BE): %d+%d, %d pend (%d unass), tot(FE+BE): %lld+%lld.
HA-Proxy version %s %s - https://haproxy.org/
Status: development branch - not safe for use in production.
Known bugs: https://github.com/haproxy/haproxy/issues?q=is:issue+is:open
--
Total number of connections.
Product name.
HAProxy version.
HAProxy release date.
Configured number of threads.
--
2020/07/07
2.3-dev0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0
@@!$

$ strings haproxy | grep -C 2 -e '2\.3-dev'
tcpv4
sockpair
 version 2.3-dev0, released 2020/07/07
2020/07/07
2.3-dev0
HAProxy version follows
GCC: (Debian 8.3.0-6) 8.3.0
@witchcraze witchcraze added the enhancement New feature or request label Sep 16, 2024
@witchcraze witchcraze changed the title Support HAProxy some old versions Support HAProxy rc and some old versions Sep 16, 2024
@kzantow kzantow moved this to Ready in OSS Sep 16, 2024
@github-project-automation github-project-automation bot moved this from Ready to Done in OSS Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binary-analysis enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants