-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error with ja4tscan and zmap #6
Comments
After some work on this.. There are quite a few libraries and apps that need installed to compile this. Here is a list that worked for me: sudo apt-get install pkg-config libjson-c-dev libjudy-dev gengetopt flex byacc libgmp-dev libunistring-dev libpcap-dev After that, I got a clean compile. But then an error when trying to test run: sudo python3 ja4tscan.py -p 80 204.79.197.212 But after grepping through the entire directory recursively, I cannot find '--blacklist-file' mentioned in any code. It appears that this option was changed to '--blocklist-file' and needs to be adjusted in order make it run. To this point, until I can figure out where that command is stored in the code, I can't make this code work. Any help would be appreciated. |
Hi, |
That’s what it uses. The makefile downloads and compiles zmap. You need to try an install. On Jun 20, 2024, at 1:42 PM, Timothy Noel ***@***.***> wrote:
Hi,
Can you let us know which version of zmap you are using?
We currently support zmap 4.1.0. You can run the build.sh file to checkout the right sources and build it.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Can you let us know what Operating System you are on? |
What's your Python version? This script uses f-strings which are only compatible with Python 3.6 or higher. Older versions of Python might not parse |
python 3.12 Linux localhost 6.3.0-kali1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1kali1 (2023-06-29) x86_64 GNU/Linux Also same errors on macOS Darwin Kernel Version 22.6.0: Mon Feb 19 19:43:13 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_ARM64_T6020 arm64 Be sure to read my errors above. It seems like you're just guessing. There is a problem with 'blacklist' being changed to 'blocklist' in zmap. Also the -I flag doesn't seem to be recognized either. I've uninstalled and reinstalled zmap and it is properly reading zmap (so it seems) in the app directory. It is installed when you run build. ls |
Looks like there might be a regression from a fix introduced for issue FoxIO-LLC#6 , when I re-add ", const struct timespec ts)" to line 77, the cmake builds correctly. Without, it throws the same error mentioned in the initial issue publication.
Hi @ryancmoon , if the update to probe_module.c has resolved this issue, can we close this out? |
Still getting error: sudo python3 ja4tscan.py -p 80 my_probe_list.txt Per my other email, it's looking for 'blocklist' not 'blacklist' Here are the build.sh errors that come up: build.sh You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 4d4166e Output the progress once more when the whole scan process finished (#828) CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Update the VERSION argument value or use a ... suffix to tell -- The C compiler identification is GNU 13.2.0 -- Checking if zmap.conf exists there... -- Configuring done (0.4s) /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:255:168: error: expected identifier or ‘(’ before ‘<’ token /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:540:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘<’ token | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:852:16: error: missing terminating ' character 852 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:875:280: warning: missing terminating " character 875 | ombobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-edb09768-b3de-4560-8f11-6b5a381c14d4" data-target="query-builder.input" data-action=" | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:875:280: error: missing terminating " character /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:884:190: error: missing terminating " character /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:888:380: error: missing terminating " character /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1103:31: warning: missing terminating " character | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1155:75: error: missing terminating ' character 1155 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1193:14: warning: missing terminating ' character 1193 | | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1193:14: error: missing terminating ' character 1193 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1320:25: error: expected identifier or ‘(’ before ‘<’ token 1320 | {{ message }} | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1673: error: expected identifier or ‘(’ before ‘<’ token 1673 | <script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"build.sh","path":"build.sh","contentType":"file"},{"name":"ja4tscan.py","path":"ja4tscan.py","contentType":"file"},{"name":"module_ja4tscan.c","path":"module_ja4tscan.c","contentType":"file"},{"name":"probe_modules.c","path":"probe_modules.c","contentType":"file"}],"totalCount":6}},"fileTreeProcessingTime":1.73323,"foldersToFetch":[],"repo":{"id":761983689,"defaultBranch":"main","name":"ja4tscan","ownerLogin":"FoxIO-LLC","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-02-22T21:22:19.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/107433376?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1713536254.0","canEdit":false,"refType":"branch","currentOid":"42a62cbeecb3552859f470f827d8d723f4413c4b"},"path":"probe_modules.c","currentUser":null,"blob":{"rawLines":["/*"," * ZMap Copyright 2013 Regents of the University of Michigan"," *"," * Licensed under the Apache License, Version 2.0 (the "License"); you may not"," * use this file except in compliance with the License. You may obtain a copy"," * of the License at http://www.apache.org/licenses/LICENSE-2.0"," */","","#include \u003cstdio.h\u003e","#include \u003cstring.h\u003e","#include \u003cassert.h\u003e","#include \u003ctime.h\u003e","#include \u003csys/time.h\u003e","","#include "../../lib/includes.h"","#include "../../lib/logger.h"","#include "../../lib/xalloc.h"","#include "../fieldset.h"","#include "probe_modules.h"","#include "packet.h"","","extern probe_module_t module_tcp_synscan;","extern probe_module_t module_tcp_synackscan;","extern probe_module_t module_icmp_echo;","extern probe_module_t module_icmp_echo_time;","extern probe_module_t module_udp;","extern probe_module_t module_ntp;","extern probe_module_t module_upnp;","extern probe_module_t module_dns;","extern probe_module_t module_bacnet;","extern probe_module_t module_ja4tscan;","// ADD YOUR MODULE HERE","","probe_module_t *probe_modules[] = {"," \u0026module_tcp_synscan, \u0026module_tcp_synackscan,"," \u0026module_icmp_echo,\t \u0026module_icmp_echo_time,"," \u0026module_udp,\t \u0026module_ntp,"," \u0026module_upnp,\t \u0026module_dns,"," \u0026module_bacnet,\t \u0026module_ja4tscan,"," // ADD YOUR MODULE HERE","};","","probe_module_t *get_probe_module_by_name(const char *name)","{","\tint len = (int)(sizeof(probe_modules) / sizeof(probe_modules[0]));","\tfor (int i = 0; i \u003c len; i++) {","\t\tif (!strcmp(probe_modules[i]-\u003ename, name)) {","\t\t\treturn probe_modules[i];","\t\t}","\t}","\treturn NULL;","}","","void print_probe_modules(void)","{","\tint len = (int)(sizeof(probe_modules) / sizeof(probe_modules[0]));","\tfor (int i = 0; i \u003c len; i++) {","\t\tprintf("%s\n", probe_modules[i]-\u003ename);","\t}","}","","void fs_add_ip_fields(fieldset_t *fs, struct ip *ip)","{","\t// WARNING: you must update fs_ip_fields_len as well","\t// as the definitions set (ip_fiels) if you","\t// change the fields added below:","\tfs_add_string(fs, "saddr", make_ip_str(ip-\u003eip_src.s_addr), 1);","\tfs_add_uint64(fs, "saddr_raw", (uint64_t)ip-\u003eip_src.s_addr);","\tfs_add_string(fs, "daddr", make_ip_str(ip-\u003eip_dst.s_addr), 1);","\tfs_add_uint64(fs, "daddr_raw", (uint64_t)ip-\u003eip_dst.s_addr);","\tfs_add_uint64(fs, "ipid", ntohs(ip-\u003eip_id));","\tfs_add_uint64(fs, "ttl", ip-\u003eip_ttl);","}","","#define TIMESTR_LEN 55","","void fs_add_system_fields(fieldset_t *fs, int is_repeat, int in_cooldown, const struct timespec ts)","{"," fs_add_bool(fs, "repeat", is_repeat);"," fs_add_bool(fs, "cooldown", in_cooldown);",""," char *timestr = xmalloc(TIMESTR_LEN + 1);"," char *timestr_ms = xmalloc(TIMESTR_LEN + 1);"," struct timeval t;"," gettimeofday(\u0026t, NULL);"," struct tm *ptm = localtime(\u0026t.tv_sec);"," strftime(timestr, TIMESTR_LEN, "%Y-%m-%dT%H:%M:%S.%%03d%z", ptm);"," snprintf(timestr_ms, TIMESTR_LEN, timestr, t.tv_usec / 1000);"," free(timestr);"," fs_add_string(fs, "timestamp_str", timestr_ms, 1);"," fs_add_uint64(fs, "timestamp_ts", (uint64_t)t.tv_sec);"," fs_add_uint64(fs, "timestamp_us", (uint64_t)t.tv_usec);","}","","int ip_fields_len = 6;","fielddef_t ip_fields[] = {"," {.name = "saddr","," .type = "string","," .desc = "source IP address of response"},"," {.name = "saddr_raw","," .type = "int","," .desc = "network order integer form of source IP address"},"," {.name = "daddr","," .type = "string","," .desc = "destination IP address of response"},"," {.name = "daddr_raw","," .type = "int","," .desc = "network order integer form of destination IP address"},"," {.name = "ipid","," .type = "int","," .desc = "IP identification number of response"},"," {.name = "ttl", .type = "int", .desc = "time-to-live of response packet"}};","","int sys_fields_len = 5;","fielddef_t sys_fields[] = {"," {.name = "repeat","," .type = "bool","," .desc = "Is response a repeat response from host"},"," {.name = "cooldown","," .type = "bool","," .desc = "Was response received during the cooldown period"},"," {.name = "timestamp_str","," .type = "string","," .desc = "timestamp of when response arrived in ISO8601 format."},"," {.name = "timestamp_ts","," .type = "int","," .desc = "timestamp of when response arrived in seconds since Epoch"},"," {.name = "timestamp_us","," .type = "int","," .desc =","\t "microsecond part of timestamp (e.g. microseconds since 'timestamp-ts')"}};"],"stylingDirectives":[[{"s":0,"e":2,"c":"pl-c"}],[{"s":0,"e":60,"c":"pl-c"}],[{"s":0,"e":2,"c":"pl-c"}],[{"s":0,"e":78,"c":"pl-c"}],[{"s":0,"e":77,"c":"pl-c"}],[{"s":0,"e":63,"c":"pl-c"}],[{"s":0,"e":3,"c":"pl-c"}],[],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":18,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":19,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":19,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":17,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":21,"c":"pl-s"}],[],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":31,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":29,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":29,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":24,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":26,"c":"pl-s"}],[{"s":0,"e":8,"c":"pl-k"},{"s":9,"e":19,"c":"pl-s"}],[],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":40,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":43,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":38,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":43,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":32,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":32,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":33,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":32,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":35,"c":"pl-s1"}],[{"s":0,"e":6,"c":"pl-k"},{"s":7,"e":21,"c":"pl-smi"},{"s":22,"e":37,"c":"pl-s1"}],[{"s":0,"e":23,"c":"pl-c"}],[],[{"s":0,"e":14,"c":"pl-smi"},{"s":15,"e":16,"c":"pl-c1"},{"s":16,"e":29,"c":"pl-s1"},{"s":32,"e":33,"c":"pl-c1"}],[{"s":4,"e":5,"c":"pl-c1"},{"s":5,"e":23,"c":"pl-s1"},{"s":25,"e":26,"c":"pl-c1"},{"s":26,"e":47,"c":"pl-s1"}],[{"s":4,"e":5,"c":"pl-c1"},{"s":5,"e":21,"c":"pl-s1"},{"s":24,"e":25,"c":"pl-c1"},{"s":25,"e":46,"c":"pl-s1"}],[{"s":4,"e":5,"c":"pl-c1"},{"s":5,"e":15,"c":"pl-s1"},{"s":18,"e":19,"c":"pl-c1"},{"s":19,"e":29,"c":"pl-s1"}],[{"s":4,"e":5,"c":"pl-c1"},{"s":5,"e":16,"c":"pl-s1"},{"s":19,"e":20,"c":"pl-c1"},{"s":20,"e":30,"c":"pl-s1"}],[{"s":4,"e":5,"c":"pl-c1"},{"s":5,"e":18,"c":"pl-s1"},{"s":21,"e":22,"c":"pl-c1"},{"s":22,"e":37,"c":"pl-s1"}],[{"s":4,"e":27,"c":"pl-c"}],[],[],[{"s":0,"e":14,"c":"pl-smi"},{"s":15,"e":16,"c":"pl-c1"},{"s":16,"e":40,"c":"pl-en"},{"s":41,"e":46,"c":"pl-k"},{"s":47,"e":51,"c":"pl-smi"},{"s":52,"e":53,"c":"pl-c1"},{"s":53,"e":57,"c":"pl-s1"}],[],[{"s":1,"e":4,"c":"pl-smi"},{"s":5,"e":8,"c":"pl-s1"},{"s":9,"e":10,"c":"pl-c1"},{"s":12,"e":15,"c":"pl-smi"},{"s":17,"e":23,"c":"pl-k"},{"s":24,"e":37,"c":"pl-smi"},{"s":41,"e":47,"c":"pl-k"},{"s":48,"e":61,"c":"pl-s1"},{"s":62,"e":63,"c":"pl-c1"}],[{"s":1,"e":4,"c":"pl-k"},{"s":6,"e":9,"c":"pl-smi"},{"s":10,"e":11,"c":"pl-s1"},{"s":12,"e":13,"c":"pl-c1"},{"s":14,"e":15,"c":"pl-c1"},{"s":17,"e":18,"c":"pl-s1"},{"s":19,"e":20,"c":"pl-c1"},{"s":21,"e":24,"c":"pl-s1"},{"s":26,"e":27,"c":"pl-s1"},{"s":27,"e":29,"c":"pl-c1"}],[{"s":2,"e":4,"c":"pl-k"},{"s":7,"e":13,"c":"pl-en"},{"s":14,"e":27,"c":"pl-s1"},{"s":28,"e":29,"c":"pl-s1"},{"s":30,"e":32,"c":"pl-c1"},{"s":32,"e":36,"c":"pl-c1"},{"s":38,"e":42,"c":"pl-s1"}],[{"s":3,"e":9,"c":"pl-k"},{"s":10,"e":23,"c":"pl-s1"},{"s":24,"e":25,"c":"pl-s1"}],[],[],[{"s":1,"e":7,"c":"pl-k"},{"s":8,"e":12,"c":"pl-c1"}],[],[],[{"s":0,"e":4,"c":"pl-smi"},{"s":5,"e":24,"c":"pl-en"},{"s":25,"e":29,"c":"pl-smi"}],[],[{"s":1,"e":4,"c":"pl-smi"},{"s":5,"e":8,"c":"pl-s1"},{"s":9,"e":10,"c":"pl-c1"},{"s":12,"e":15,"c":"pl-smi"},{"s":17,"e":23,"c":"pl-k"},{"s":24,"e":37,"c":"pl-smi"},{"s":41,"e":47,"c":"pl-k"},{"s":48,"e":61,"c":"pl-s1"},{"s":62,"e":63,"c":"pl-c1"}],[{"s":1,"e":4,"c":"pl-k"},{"s":6,"e":9,"c":"pl-smi"},{"s":10,"e":11,"c":"pl-s1"},{"s":12,"e":13,"c":"pl-c1"},{"s":14,"e":15,"c":"pl-c1"},{"s":17,"e":18,"c":"pl-s1"},{"s":19,"e":20,"c":"pl-c1"},{"s":21,"e":24,"c":"pl-s1"},{"s":26,"e":27,"c":"pl-s1"},{"s":27,"e":29,"c":"pl-c1"}],[{"s":2,"e":8,"c":"pl-en"},{"s":9,"e":15,"c":"pl-s"},{"s":17,"e":30,"c":"pl-s1"},{"s":31,"e":32,"c":"pl-s1"},{"s":33,"e":35,"c":"pl-c1"},{"s":35,"e":39,"c":"pl-c1"}],[],[],[],[{"s":0,"e":4,"c":"pl-smi"},{"s":5,"e":21,"c":"pl-en"},{"s":22,"e":32,"c":"pl-smi"},{"s":33,"e":34,"c":"pl-c1"},{"s":34,"e":36,"c":"pl-s1"},{"s":38,"e":44,"c":"pl-k"},{"s":45,"e":47,"c":"pl-smi"},{"s":48,"e":49,"c":"pl-c1"},{"s":49,"e":51,"c":"pl-s1"}],[],[{"s":1,"e":54,"c":"pl-c"}],[{"s":1,"e":44,"c":"pl-c"}],[{"s":1,"e":34,"c":"pl-c"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":26,"c":"pl-s"},{"s":28,"e":39,"c":"pl-en"},{"s":40,"e":42,"c":"pl-s1"},{"s":42,"e":44,"c":"pl-c1"},{"s":44,"e":50,"c":"pl-c1"},{"s":51,"e":57,"c":"pl-c1"},{"s":60,"e":61,"c":"pl-c1"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":30,"c":"pl-s"},{"s":33,"e":41,"c":"pl-smi"},{"s":42,"e":44,"c":"pl-s1"},{"s":44,"e":46,"c":"pl-c1"},{"s":46,"e":52,"c":"pl-c1"},{"s":53,"e":59,"c":"pl-c1"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":26,"c":"pl-s"},{"s":28,"e":39,"c":"pl-en"},{"s":40,"e":42,"c":"pl-s1"},{"s":42,"e":44,"c":"pl-c1"},{"s":44,"e":50,"c":"pl-c1"},{"s":51,"e":57,"c":"pl-c1"},{"s":60,"e":61,"c":"pl-c1"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":30,"c":"pl-s"},{"s":33,"e":41,"c":"pl-smi"},{"s":42,"e":44,"c":"pl-s1"},{"s":44,"e":46,"c":"pl-c1"},{"s":46,"e":52,"c":"pl-c1"},{"s":53,"e":59,"c":"pl-c1"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":25,"c":"pl-s"},{"s":27,"e":32,"c":"pl-en"},{"s":33,"e":35,"c":"pl-s1"},{"s":35,"e":37,"c":"pl-c1"},{"s":37,"e":42,"c":"pl-c1"}],[{"s":1,"e":14,"c":"pl-en"},{"s":15,"e":17,"c":"pl-s1"},{"s":19,"e":24,"c":"pl-s"},{"s":26,"e":28,"c":"pl-s1"},{"s":28,"e":30,"c":"pl-c1"},{"s":30,"e":36,"c":"pl-c1"}],[],[],[{"s":0,"e":7,"c":"pl-k"},{"s":8,"e":19,"c":"pl-c1"}],[],[{"s":0,"e":4,"c":"pl-smi"},{"s":5,"e":25,"c":"pl-en"},{"s":26,"e":36,"c":"pl-smi"},{"s":37,"e":38,"c":"pl-c1"},{"s":38,"e":40,"c":"pl-s1"},{"s":42,"e":45,"c":"pl-smi"},{"s":46,"e":55,"c":"pl-s1"},{"s":57,"e":60,"c":"pl-smi"},{"s":61,"e":72,"c":"pl-s1"},{"s":74,"e":79,"c":"pl-k"},{"s":80,"e":86,"c":"pl-k"},{"s":87,"e":95,"c":"pl-smi"},{"s":96,"e":98,"c":"pl-s1"}],[],[{"s":8,"e":19,"c":"pl-en"},{"s":20,"e":22,"c":"pl-s1"},{"s":24,"e":32,"c":"pl-s"},{"s":34,"e":43,"c":"pl-s1"}],[{"s":8,"e":19,"c":"pl-en"},{"s":20,"e":22,"c":"pl-s1"},{"s":24,"e":34,"c":"pl-s"},{"s":36,"e":47,"c":"pl-s1"}],[],[{"s":8,"e":12,"c":"pl-smi"},{"s":13,"e":14,"c":"pl-c1"},{"s":14,"e":21,"c":"pl-s1"},{"s":22,"e":23,"c":"pl-c1"},{"s":24,"e":31,"c":"pl-en"},{"s":32,"e":43,"c":"pl-c1"},{"s":44,"e":45,"c":"pl-c1"},{"s":46,"e":47,"c":"pl-c1"}],[{"s":8,"e":12,"c":"pl-smi"},{"s":13,"e":14,"c":"pl-c1"},{"s":14,"e":24,"c":"pl-s1"},{"s":25,"e":26,"c":"pl-c1"},{"s":27,"e":34,"c":"pl-en"},{"s":35,"e":46,"c":"pl-c1"},{"s":47,"e":48,"c":"pl-c1"},{"s":49,"e":50,"c":"pl-c1"}],[{"s":8,"e":14,"c":"pl-k"},{"s":15,"e":22,"c":"pl-smi"},{"s":23,"e":24,"c":"pl-s1"}],[{"s":8,"e":20,"c":"pl-en"},{"s":21,"e":22,"c":"pl-c1"},{"s":22,"e":23,"c":"pl-s1"},{"s":25,"e":29,"c":"pl-c1"}],[{"s":8,"e":14,"c":"pl-k"},{"s":15,"e":17,"c":"pl-smi"},{"s":18,"e":19,"c":"pl-c1"},{"s":19,"e":22,"c":"pl-s1"},{"s":23,"e":24,"c":"pl-c1"},{"s":25,"e":34,"c":"pl-en"},{"s":35,"e":36,"c":"pl-c1"},{"s":36,"e":37,"c":"pl-s1"},{"s":38,"e":44,"c":"pl-c1"}],[{"s":8,"e":16,"c":"pl-en"},{"s":17,"e":24,"c":"pl-s1"},{"s":26,"e":37,"c":"pl-c1"},{"s":39,"e":66,"c":"pl-s"},{"s":68,"e":71,"c":"pl-s1"}],[{"s":8,"e":16,"c":"pl-en"},{"s":17,"e":27,"c":"pl-s1"},{"s":29,"e":40,"c":"pl-c1"},{"s":42,"e":49,"c":"pl-s1"},{"s":51,"e":52,"c":"pl-s1"},{"s":53,"e":60,"c":"pl-c1"},{"s":63,"e":67,"c":"pl-c1"}],[{"s":8,"e":12,"c":"pl-en"},{"s":13,"e":20,"c":"pl-s1"}],[{"s":8,"e":21,"c":"pl-en"},{"s":22,"e":24,"c":"pl-s1"},{"s":26,"e":41,"c":"pl-s"},{"s":43,"e":53,"c":"pl-s1"},{"s":55,"e":56,"c":"pl-c1"}],[{"s":8,"e":21,"c":"pl-en"},{"s":22,"e":24,"c":"pl-s1"},{"s":26,"e":40,"c":"pl-s"},{"s":43,"e":51,"c":"pl-smi"},{"s":52,"e":53,"c":"pl-s1"},{"s":54,"e":60,"c":"pl-c1"}],[{"s":8,"e":21,"c":"pl-en"},{"s":22,"e":24,"c":"pl-s1"},{"s":26,"e":40,"c":"pl-s"},{"s":43,"e":51,"c":"pl-smi"},{"s":52,"e":53,"c":"pl-s1"},{"s":54,"e":61,"c":"pl-c1"}],[],[],[{"s":0,"e":3,"c":"pl-smi"},{"s":4,"e":17,"c":"pl-s1"},{"s":18,"e":19,"c":"pl-c1"},{"s":20,"e":21,"c":"pl-c1"}],[{"s":0,"e":10,"c":"pl-smi"},{"s":11,"e":20,"c":"pl-s1"},{"s":23,"e":24,"c":"pl-c1"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":20,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":21,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":44,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":24,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":62,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":20,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":21,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":49,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":24,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":67,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":19,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":51,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"},{"s":21,"e":25,"c":"pl-c1"},{"s":26,"e":27,"c":"pl-c1"},{"s":28,"e":33,"c":"pl-s"},{"s":36,"e":40,"c":"pl-c1"},{"s":41,"e":42,"c":"pl-c1"},{"s":43,"e":76,"c":"pl-s"}],[],[{"s":0,"e":3,"c":"pl-smi"},{"s":4,"e":18,"c":"pl-s1"},{"s":19,"e":20,"c":"pl-c1"},{"s":21,"e":22,"c":"pl-c1"}],[{"s":0,"e":10,"c":"pl-smi"},{"s":11,"e":21,"c":"pl-s1"},{"s":24,"e":25,"c":"pl-c1"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":21,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":19,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":54,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":23,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":19,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":63,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":28,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":21,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":68,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":27,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":72,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":27,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"},{"s":13,"e":18,"c":"pl-s"}],[{"s":6,"e":10,"c":"pl-c1"},{"s":11,"e":12,"c":"pl-c1"}],[{"s":2,"e":74,"c":"pl-s"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/FoxIO-LLC/ja4tscan/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"probe_modules.c","displayUrl":"https://github.com/FoxIO-LLC/ja4tscan/blob/main/probe_modules.c?raw=true","headerInfo":{"blobSize":"4.19 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"d967f88","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FFoxIO-LLC%2Fja4tscan%2Fblob%2Fmain%2Fprobe_modules.c","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"131","truncatedSloc":"119"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C","languageID":41,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/FoxIO-LLC/ja4tscan/blob/main/probe_modules.c","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/FoxIO-LLC/ja4tscan/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/FoxIO-LLC/ja4tscan/raw/main/probe_modules.c","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"get_probe_module_by_name","kind":"function","ident_start":1251,"ident_end":1275,"extent_start":1251,"extent_end":1293,"fully_qualified_name":"get_probe_module_by_name","ident_utf16":{"start":{"line_number":42,"utf16_col":16},"end":{"line_number":42,"utf16_col":40}},"extent_utf16":{"start":{"line_number":42,"utf16_col":16},"end":{"line_number":42,"utf16_col":58}}},{"name":"print_probe_modules","kind":"function","ident_start":1501,"ident_end":1520,"extent_start":1501,"extent_end":1526,"fully_qualified_name":"print_probe_modules","ident_utf16":{"start":{"line_number":53,"utf16_col":5},"end":{"line_number":53,"utf16_col":24}},"extent_utf16":{"start":{"line_number":53,"utf16_col":5},"end":{"line_number":53,"utf16_col":30}}},{"name":"fs_add_ip_fields","kind":"function","ident_start":1683,"ident_end":1699,"extent_start":1683,"extent_end":1730,"fully_qualified_name":"fs_add_ip_fields","ident_utf16":{"start":{"line_number":61,"utf16_col":5},"end":{"line_number":61,"utf16_col":21}},"extent_utf16":{"start":{"line_number":61,"utf16_col":5},"end":{"line_number":61,"utf16_col":52}}},{"name":"TIMESTR_LEN","kind":"macro","ident_start":2216,"ident_end":2227,"extent_start":2208,"extent_end":2232,"fully_qualified_name":"TIMESTR_LEN","ident_utf16":{"start":{"line_number":74,"utf16_col":8},"end":{"line_number":74,"utf16_col":19}},"extent_utf16":{"start":{"line_number":74,"utf16_col":0},"end":{"line_number":76,"utf16_col":0}}},{"name":"fs_add_system_fields","kind":"function","ident_start":2237,"ident_end":2257,"extent_start":2237,"extent_end":2331,"fully_qualified_name":"fs_add_system_fields","ident_utf16":{"start":{"line_number":76,"utf16_col":5},"end":{"line_number":76,"utf16_col":25}},"extent_utf16":{"start":{"line_number":76,"utf16_col":5},"end":{"line_number":76,"utf16_col":99}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/FoxIO-LLC/ja4tscan/branches":{"post":"Lnvgb4XNccl2o6FNuhdqr0QyvHadjlhM8lFsfdC5TsUvmcDfsmWwQkLzE4_XhKdRMVpyNSjZcqtKd9M3xv_vUg"},"/repos/preferences":{"post":"LSw0arpgSMZ0O5tguvUTUE7Rf12304buz55bPX0CASKBmsyTMgbjc542pj09mVtZNHZfE_E5hC-raVcXs1wJTQ"}}},"title":"ja4tscan/probe_modules.c at main · FoxIO-LLC/ja4tscan","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-1583894afd38.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-3a63a487027b.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"overview_shared_code_dropdown_button":false,"react_blob_overlay":false,"copilot_conversational_ux_embedding_update":false,"copilot_smell_icebreaker_ux":true,"copilot_workspace":false}}}</script> | /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1690:13: warning: character constant too long for its type 1690 | Footer| ^~~~~~~~~ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1703:16: error: expected identifier or ‘(’ before numeric constant 1703 | © 2024 GitHub, Inc. | ^~~~ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1703:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘.’ token 1703 | © 2024 GitHub, Inc. | ^ /root/ja4tscan/zmap/src/probe_modules/probe_modules.c:1772:12: error: stray ‘\342’ in program 1772 | You can<U+2019>t perform that action at this time. | ^~~~~~~~ make[2]: *** [src/CMakeFiles/zmap.dir/build.make:494: src/CMakeFiles/zmap.dir/probe_modules/probe_modules.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:205: src/CMakeFiles/zmap.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 You can now run python3 ja4tscan.py |
Anyone receive this error:
sudo python3 ja4tscan.py -p 80 204.79.197.223
adding iptable rules...
zmap: invalid option -- 'I'
cleaning up iptable rules...
The text was updated successfully, but these errors were encountered: