You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to change the HTTP request headers of the implant to send a custom header. I therefore exported the default c2profile (c2profile export -f default.conf), tried to integrate the following in the headers array in implant_config:
and then imported the file using the -o switch to override the config.
c2profiles import -f default.conf -o
and restarted the listener.
Somehow the header is not sent during the checkin request of a new implant. also when I view the c2profile using the command: c2profiles, the header is not shown in client headers.
What is the correct way to add a custom HTTP header to each request of generated implants?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I wanted to change the HTTP request headers of the implant to send a custom header. I therefore exported the default c2profile (
c2profile export -f default.conf
), tried to integrate the following in the headers array in implant_config:"headers":[{"name":"custom_header_name","value":"custom_header_value","probability":100,"Methods":null}]
and then imported the file using the -o switch to override the config.
c2profiles import -f default.conf -o
and restarted the listener.
Somehow the header is not sent during the checkin request of a new implant. also when I view the c2profile using the command: c2profiles, the header is not shown in client headers.
What is the correct way to add a custom HTTP header to each request of generated implants?
Beta Was this translation helpful? Give feedback.
All reactions