Comments (5)
Other Linux-standard possible solutions:
-
pthread_setname_np
(pthread_self(), "newName"); is probably the better method, it comes fromglibc
and might be portable to other non-Linux systems -
prctl
(PR_SET_NAME, (unsigned long)"newName", 0, 0, 0);
from cbrutekrag.
prctl(PR_SET_NAME, (unsigned long)"newName", 0, 0, 0);
First, thank you for the quick response.
Second, where should i place this line ?
"prctl(PR_SET_NAME, (unsigned long)"newName", 0, 0, 0);"
_<
from cbrutekrag.
Hello !
A Fake Process will be awesome.
This is an example of a fake process command line :trcpy(argv[0],FAKE); // fake the proccess name.
while(fgets(buff,sizeof(buff),fp))
{
c=strchr(buff,'n');
if(c!=NULL) *c='.';
if (!(fork()))
{
where=0;
// printf("--> attacking %s",buff);
for (i=0; i<count; i=i+2){
// printf("--> Trying %s:%s %sn",a[i],a[i+1],buff);
checkauth(a[i],a[i+1],buff); // try to auth
}
exit(0);this is taken from
https://github.com/MrMugiwara/against-cracker/blob/master/against.py
Of course, this is py, but i guess this can also be done in C.
Thank you, Brother !
Your code is ANSI C, not Python 😆
But yes, the way to change the process name on UNIX systems are writing on memory where argv[0] is allocated. 👍
I guess that your code has a missing "s", should be:
strcpy(argv[0], FAKE);
<--- Basically it's copying memory from FAKE to address where argv[0] is allocated.
This single line covers your request :D
from cbrutekrag.
Other Linux-standard possible solutions:
* [`pthread_setname_np`](https://linux.die.net/man/3/pthread_setname_np)(pthread_self(), "newName"); is probably the better method, it comes from `glibc` and might be portable to other non-Linux systems * [`prctl`](https://linux.die.net/man/2/prctl)(PR_SET_NAME, (unsigned long)"newName", 0, 0, 0);
Hello again, Brother!
As above, I'm asking you about those lines :D
where should i place them ?
cbrutekrag.c ?
is there anything else to insert ?
can you give me an example ?
Thank you so much brother !
Note: my coding skills are horrible :))))
from cbrutekrag.
I also got plenty of errors when i tried to add prctl or pthread_setname_np
from cbrutekrag.
Related Issues (20)
- 2 more options required HOT 1
- const char *commandline = command; HOT 14
- Implement Command Execution - Output HOT 11
- Support for port on the targets list HOT 13
- Port ranges HOT 1
- Build failing on Debian 7 and Debian 8 i386 HOT 2
- Accept targets from STDIN
- SIGSEGV when combinations file has empty lines
- Progress bar bug HOT 2
- Add option to output -s (Scan) results HOT 3
- *** buffer overflow detected ***: terminated HOT 7
- Detect SonicWall SSH HOT 4
- Static Compile issue HOT 4
- multiple successful results with the same IP address, HOT 12
- static build compile error...help HOT 2
- check your email! :) HOT 1
- Option to only scan good IPs and other option to export good IPs while running brute forcing to a new file (different with ouput file). Specs grabber
- Support for use hostname as password HOT 4
- Save only format ip|user|pass
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbrutekrag.