Skip to content

Commit

Permalink
Implement caleaboqui task
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-santiago committed Aug 15, 2023
1 parent 4416b8f commit 1a18476
Show file tree
Hide file tree
Showing 12 changed files with 589 additions and 8 deletions.
15 changes: 15 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_deinit_hook.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cmd/hooks/macgonuts_caleaboqui_deinit_hook.h>
#include <macgonuts_status_info.h>

int macgonuts_caleaboqui_deinit_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size) {
macgonuts_si_mode_leave_announce("caleaboqui");
return EXIT_SUCCESS;
}
16 changes: 16 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_deinit_hook.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DEINIT_HOOK_H
#define MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DEINIT_HOOK_H 1

#include <macgonuts_types.h>

int macgonuts_caleaboqui_deinit_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size);

#endif // MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DEINIT_HOOK_H
16 changes: 16 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_done_hook.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cmd/hooks/macgonuts_caleaboqui_done_hook.h>
#include <macgonuts_status_info.h>

int macgonuts_caleaboqui_done_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size) {
assert(spfgd->usrinfo.tg_address != NULL);
macgonuts_si_print("internet access from `%s` was cut off.\n", spfgd->usrinfo.tg_address);
return EXIT_SUCCESS;
}
16 changes: 16 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_done_hook.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DONE_HOOK_H
#define MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DONE_HOOK_H 1

#include <macgonuts_types.h>

int macgonuts_caleaboqui_done_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size);

#endif // MACGONUTS_CMD_MACGONUTS_CALEABOQUI_DONE_HOOK_H
15 changes: 15 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_init_hook.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cmd/hooks/macgonuts_caleaboqui_init_hook.h>
#include <macgonuts_status_info.h>

int macgonuts_caleaboqui_init_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size) {
macgonuts_si_mode_enter_announce("caleaboqui");
return EXIT_SUCCESS;
}
16 changes: 16 additions & 0 deletions src/cmd/hooks/macgonuts_caleaboqui_init_hook.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2023, Rafael Santiago
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifndef MACGONUTS_CMD_MACGONUTS_CALEABOQUI_INIT_HOOK_H
#define MACGONUTS_CMD_MACGONUTS_CALEABOQUI_INIT_HOOK_H 1

#include <macgonuts_types.h>

int macgonuts_caleaboqui_init_hook(struct macgonuts_spoofing_guidance_ctx *spfgd,
const unsigned char *ethfrm, const size_t ethfrm_size);

#endif // MACGONUTS_CMD_MACGONUTS_CALEABOQUI_INIT_HOOK_H
Loading

0 comments on commit 1a18476

Please sign in to comment.