Skip to content

Fix: Missing Parenthesis in "C Windows" Reverse Shell #190

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

G4sp4rCS
Copy link

Fix missing parenthesis in C Windows Reverse Shell

Related Issue

Closes #185

Problem

When selecting the "C Windows" Reverse Shell option, the generated code contains a syntax error at line 18:

Winsock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0;

There is a missing closing parenthesis ) at the end of the function call.

given fix

Winsock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0);

If you select the "C Windows" Reverse Shell it generates with a missing paranthesis in line 18:

Winsock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0;

instead of

Winsock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Parenthesis in "C Windows" Reverse Shell
1 participant