• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community The Community Freelancer Forum
« Previous 1 … 42 43 44 45 46 … 67 Next »
Rant to microsoft!

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Rant to microsoft!
Offline chovynz
08-19-2008, 01:17 PM,
#25
Member
Posts: 2,023
Threads: 79
Joined: Apr 2008

:facepalm:

...

http://en.wikipedia.org/wiki/Source_code

Example source code.

Code:
/* chdir_kmod.c by detour@metalshell.com
*
* This simple module will recieve system calls
* to change the directory and log them.  This can
* be very useful if you want to create a sandbox for
* users on your system, or just log general activity.
*
* Compile:
*  gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -c chdir_kmod.c
*
* Install:
*  insmod chdir_kmod
*
* Note: Do not load it twice, or you could lose the pointer
*       to the original kernel function and be unable to
*       change directories.
*
* http://www.metalshell.com/
*
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include <sys/syscall.h>

#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif

extern void *sys_call_table[];

/* Pointer to original chdir function, we must call this
&nbsp;&nbsp; from our intercept function to allow for normal directory
&nbsp;&nbsp; changes.&nbsp;&nbsp;This will also be used to restore the syscall pointer
&nbsp;&nbsp; when this module is unloaded. */
int (*old_sys_chdir)(const char *);

int (*sys_getuid)();

int sys_chdir_intercept(const char *path) {
&nbsp;&nbsp;printk("%d %s\n", sys_getuid(), path);

&nbsp;&nbsp;return old_sys_chdir(path);
}

int init_module() {
&nbsp;&nbsp;// Outputted to your syslog

&nbsp;&nbsp;printk("Module loaded..\n");

&nbsp;&nbsp;old_sys_chdir = sys_call_table[__NR_chdir];
&nbsp;&nbsp;sys_call_table[__NR_chdir] = sys_chdir_intercept;

&nbsp;&nbsp;sys_getuid = sys_call_table[__NR_getuid];

&nbsp;&nbsp;return 0;
}

void cleanup_module() {
&nbsp;&nbsp;// Outputted to your syslog

&nbsp;&nbsp;printk("Module unloaded..\n");

&nbsp;&nbsp;sys_call_table[__NR_chdir] = old_sys_chdir;
}

Example of what happens when you look at the FL file with a Hex editor.

Code:
00011E7A0: 00 8D 74 24 48 8D 7C 24 18 F3 A5 8B 4C 24 10 89 .ıt$Hı|$.??‹L$.‰
00011E7B0: 44 24 3C A1 C8 52 67 00 85 C0 89 4C 24 40 89 54 D$<??Rg.…?‰L$@‰T
00011E7C0: 24 44 75 0A E8 17 8C 09 00 A3 C8 52 67 00 8B 08 $Du.?.OE..??Rg.‹.
00011E7D0: 8D 54 24 18 52 8D 93 14 02 00 00 52 8D 54 24 74 ıT$.Rı“....RıT$t
00011E7E0: 52 50 FF 51 1C 8D 7B 04 B9 0C 00 00 00 8D 74 24 RP?Q.ı{.?....ıt$
00011E7F0: 6C F3 A5 C6 43 34 01 5F 5E 5B 81 C4 90 00 00 00 l???C4._^[ı?ı...
00011E800: C2 04 00 90 90 90 90 90 90 90 90 90 90 90 90 90 ?..ııııııııııııı
00011E810: 8B 89 F8 00 00 00 85 C9 B0 01 74 0C 8B 01 51 FF ‹‰?...…?.t.‹.Q?
00011E820: 50 54 83 F8 04 0F 94 C0 C3 E8 4B 2B EE FF 90 90 PT??..”???K+??ıı
00011E830: A1 A8 C2 5D 00 53 55 56 57 33 FF 85 C0 74 43 8B ???].SUVW3?…?tC‹
00011E840: 6C 24 18 8B F5 8A 10 8A 1E 8A CA 3A D3 75 1E 84 l$.‹??.?.??:?u.„
00011E850: C9 74 16 8A 50 01 8A 5E 01 8A CA 3A D3 75 0E 83 ?t.?P.?^.??:?u.?
00011E860: C0 02 83 C6 02 84 C9 75 DC 33 C0 EB 05 1B C0 83 ?.??.„?u?3??..??
00011E870: D8 FF 85 C0 74 22 8B 04 FD B0 C2 5D 00 47 85 C0 ??…?t"‹.??].G…?
00011E880: 75 C1 8B 54 24 1C 5F 5E 5D C7 02 00 00 00 00 B8 u?‹T$._^]?.....?
00011E890: FD FF FF FF 5B C2 0C 00 8B 04 FD AC C2 5D 00 85 ????[?..‹.??].…
00011E8A0: C0 79 21 8B 4C 24 14 25 FF FF FF 7F 8B 34 08 8B ?y!‹L$.%???‹4.‹
00011E8B0: 06 56 FF 50 04 8B 4C 24 1C 5F 89 31 5E 5D 33 C0 .V?P.‹L$._‰1^]3?
00011E8C0: 5B C2 0C 00 8B 54 24 14 8D 34 10 8B 06 56 FF 50 [?..‹T$.ı4.‹.V?P
00011E8D0: 04 8B 4C 24 1C 5F 89 31 5E 5D 33 C0 5B C2 0C 00 .‹L$._‰1^]3?[?..
00011E8E0: 8B 44 24 04 8B 48 04 41 89 48 04 8B C1 C2 04 00 ‹D$.‹H.A‰H.‹??..

Without the source code We can't modify the things. (yes we could hack it but then MS would sue us/the person, Much better to do things legally, And with patience,)

A programmer would be able to explain more better, but this is a simplification for the purposes of explaining why Just Hex editing wouldnt work.

Sovereign Wrote:Seek fun and you shall find it. Seek stuff to Q_Q about and you'll find that, too. I choose to have fun.
  Reply  


Messages In This Thread
Rant to microsoft! - by stewcool - 08-18-2008, 01:15 AM
Rant to microsoft! - by Linkus - 08-18-2008, 01:18 AM
Rant to microsoft! - by chovynz - 08-18-2008, 01:36 AM
Rant to microsoft! - by Dopamino - 08-18-2008, 01:50 AM
Rant to microsoft! - by Amon.Cire - 08-18-2008, 01:55 AM
Rant to microsoft! - by chovynz - 08-18-2008, 02:14 AM
Rant to microsoft! - by stewcool - 08-18-2008, 02:34 AM
Rant to microsoft! - by weylin - 08-18-2008, 03:22 AM
Rant to microsoft! - by Lucend - 08-18-2008, 03:26 AM
Rant to microsoft! - by weylin - 08-18-2008, 04:07 AM
Rant to microsoft! - by Xing - 08-18-2008, 04:12 AM
Rant to microsoft! - by weylin - 08-18-2008, 04:18 AM
Rant to microsoft! - by Klaw117 - 08-18-2008, 05:50 AM
Rant to microsoft! - by weylin - 08-18-2008, 10:54 AM
Rant to microsoft! - by John Keel - 08-18-2008, 03:19 PM
Rant to microsoft! - by Kuraine - 08-18-2008, 03:58 PM
Rant to microsoft! - by AJBeast - 08-18-2008, 04:20 PM
Rant to microsoft! - by Boss - 08-18-2008, 04:26 PM
Rant to microsoft! - by John Keel - 08-18-2008, 07:11 PM
Rant to microsoft! - by Seth Karlo - 08-18-2008, 07:52 PM
Rant to microsoft! - by chovynz - 08-19-2008, 11:14 AM
Rant to microsoft! - by 13CentKiller - 08-19-2008, 11:23 AM
Rant to microsoft! - by Seth Karlo - 08-19-2008, 11:41 AM
Rant to microsoft! - by 13CentKiller - 08-19-2008, 11:48 AM
Rant to microsoft! - by chovynz - 08-19-2008, 01:17 PM
Rant to microsoft! - by Epholl - 08-19-2008, 01:36 PM
Rant to microsoft! - by Rpgdudester - 08-19-2008, 02:21 PM
Rant to microsoft! - by sn!p3r - 08-19-2008, 02:23 PM
Rant to microsoft! - by El Nino - 08-19-2008, 02:39 PM
Rant to microsoft! - by Monk - 08-19-2008, 03:58 PM
Rant to microsoft! - by Heartless - 08-19-2008, 10:11 PM
Rant to microsoft! - by chovynz - 08-19-2008, 10:40 PM
Rant to microsoft! - by sn!p3r - 08-20-2008, 05:32 AM
Rant to microsoft! - by Rpgdudester - 08-20-2008, 04:08 PM
Rant to microsoft! - by Klaw117 - 08-20-2008, 06:20 PM
Rant to microsoft! - by Niezck - 08-21-2008, 02:31 AM
Rant to microsoft! - by Praetyre - 08-21-2008, 02:37 AM
Rant to microsoft! - by chovynz - 08-21-2008, 02:45 AM
Rant to microsoft! - by Rpgdudester - 08-21-2008, 06:39 AM
Rant to microsoft! - by stewcool - 08-21-2008, 07:12 AM
Rant to microsoft! - by 13CentKiller - 08-21-2008, 07:25 AM
Rant to microsoft! - by stewcool - 08-21-2008, 07:28 AM
Rant to microsoft! - by Cyro - 08-21-2008, 10:29 AM
Rant to microsoft! - by Epholl - 08-21-2008, 10:54 AM
Rant to microsoft! - by Praetyre - 08-21-2008, 11:53 AM
Rant to microsoft! - by Rpgdudester - 08-22-2008, 07:59 AM
Rant to microsoft! - by chovynz - 08-22-2008, 08:13 AM
Rant to microsoft! - by Leo - 08-22-2008, 05:55 PM
Rant to microsoft! - by Rpgdudester - 08-23-2008, 01:42 PM
Rant to microsoft! - by Linkero - 08-23-2008, 02:32 PM
Rant to microsoft! - by chovynz - 08-23-2008, 04:40 PM
Rant to microsoft! - by Sand-Viper - 08-23-2008, 05:32 PM
Rant to microsoft! - by Cyro - 08-23-2008, 05:33 PM
Rant to microsoft! - by VincentFerrex - 08-23-2008, 05:36 PM
Rant to microsoft! - by Sand-Viper - 08-23-2008, 05:48 PM
Rant to microsoft! - by chovynz - 08-23-2008, 06:00 PM
Rant to microsoft! - by Ximen_Benitez - 08-31-2008, 04:20 PM
Rant to microsoft! - by Crassus - 08-31-2008, 04:54 PM
Rant to microsoft! - by Klaw117 - 09-02-2008, 03:30 AM
Rant to microsoft! - by Seth Karlo - 09-02-2008, 03:49 PM
Rant to microsoft! - by BugsBunny - 09-02-2008, 06:56 PM
Rant to microsoft! - by stewcool - 09-02-2008, 06:58 PM
Rant to microsoft! - by Sand-Viper - 09-02-2008, 07:06 PM
Rant to microsoft! - by Jazz - 09-02-2008, 09:48 PM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode