|
WATIF THE USER STOPS THE SERVICE. THE USER WILL HAVE ADMINISTRATIVE PRIVILAGE
|
|
|
|
|
Xelalem wrote: WATIF THE USER STOPS THE SERVICE.
Always remember, it's the user's PC. Why should your software prevent him/her from being in control of their own computing platform.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
this project is for univeristy computer lab.the users(students) may have administrative privilage but it's not their computer and they are not allowed to visit some websites. this websites are not blocked from the proxy server becouse staff members should access the websites...
I create another process that checks the webfilter is in the process list every minlisecond and if the process is not in the list it will restart the application again... idially it was suppose to work .. but sometimes the other process does not restart the application... do you 've any idea how to solve the problem
|
|
|
|
|
You need to apply an access policy at the proxy server, and maintaining a list of people who can see everything. As the students are admins on the client machines, they can stop whatever processes are running and therefore circumvent any security you put in place.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Yes off Cource User Can stop it if he have Administrator Privilages.
You can use Auto start in a Minute. if it is not a good way. then you can use driver Development.
If you can think then I Can.
|
|
|
|
|
If you've done what most people do when they don't understand the problem at hand, you've created an app that will only work with IE. Any other browser will be unaffected.
The proper way to do this would have been a proxy server that filters out URL's and will work with any browser.
|
|
|
|
|
it works with any browser
|
|
|
|
|
I said, IF, you did what most people do...
What is yours based on?
|
|
|
|
|
it extracts the title bar of any window and comapares each word with a black listed words. it's better than most webfilters. + you dont have to add every pornographic website in the black list. just the word porn or sex is enough to block almost all pornographic websites. + websites that opens another websites(like unblockanything.com) cant fool it...
Any ways i was thinking to disable rigedit,taskmgr,cmd,gpedit.msc and gain access again by entering password to the webfilter application... wat do you think
|
|
|
|
|
Xelalem wrote: + websites that opens another websites(like unblockanything.com) cant fool it...
Wanna bet? Since you just told me how it works, I can fool your app quite easily. I can the possibility of your algorithm closing windows that it shouldn't and not catching others that it should.
Xelalem wrote: Any ways i was thinking to disable rigedit,taskmgr,cmd,gpedit.msc
EASILY defeatable. These are things that are better handled by policy since the loader won't even start an application that's in the exception list. Your alogithm has to let the app start before you kill it, AND you also risk data loss by killing a process without exiting it gracefully.
The problem with black lists is that any technique dependant on them is following one of the 6 dubest ideas in computer security, "Enumeration of Badness". This means you're only catching stuff you know about. You're NOT catching the stuff you DON'T know about.
Password? I don't need a password to unlock this stuff. I can STILL kill your service whith all of the above tools disabled. Remember that "don't know about" part? Yeah...
Also, being a "web filter", disabling half the users system just to keep you filter running is hardly a viable concept. "I wanted something to filter bad websties and I got an application that won't allow me to do this, that, and these things either!" This alone will get your app uninstalled by just about every user who touches it.
|
|
|
|
|
There is no way to keep your process from being killed by Task Manager and no way to hide it.
|
|
|
|
|
wat if i enject my process as a thread to one of the system processes... will that work?
|
|
|
|
|
Nope. Managed code, C#, VB.NET, or any other language that targets the .NET CLR, cannot be injected into other processes, and you cannot inject code into the kernel.
|
|
|
|
|
hi i am a newbie to .net.
while developing an application for the PTZ camera i faced the follwing problem.
please help me.
((System.ComponentModel.ISupportInitialize)(this.axMSComm1)).EndInit();
"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Check the ErrorCode property of the exception to determine the HRESULT returned by the COM object"
please give me instructions so that i am able to fix this error
|
|
|
|
|
Hi there,
I'm going to have a quite large excel document on Books.
This will include for example a name, idnumber, author etc.
In my program in Visual Studio I have a class for each of these books that also contains a string for the name, int for the idnumber, etc etc.
Is there anyway to easily import this data and auto create the class code without having to manually put it in?
Thanks
|
|
|
|
|
Hi,
do you want to import the data of the excel book? What you could do is to export the excel file to csv, then read this file line by line and create an object of your book class by setting the fields according to the values.
Regards
Sebastian
|
|
|
|
|
Thanks for the idea!
You're a legend! =}
|
|
|
|
|
Dear friends,
i have small clarification ..
i have list box, while selecting any item, blue color will the back gourd appears for the selected item , i do not want that blue color
how to remove that???
sorry i do not have bled.. so some one can give the solution as xaml
Thank you
By
Joe
|
|
|
|
|
Dear fiends,
i got the answer ..
<Style TargetType="ListBoxItem">
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/>
</Style.Resources>
</Style>
Thank you
|
|
|
|
|
Hi,
Im trying to find out the simplest way to store variable values in a file (text or otherwise), as well as being able to read specific areas of the file in order to retrive the values and implement them into a windows form control like a textbox or something. The StreamReader and StreamWriter class works but I dont know how to read specific lines like line number 4 or so. Here is my code:
<pre>
StreamReader sr = new StreamReader("configFile.txt", System.Text.Encoding.Default);
string s = null;
while ((s = sr.ReadLine()) != null)
{
if (s.IndexOf("Name:") != -1)
{
// textBox1.text = s;
break;
}
}
sr.Close();
</pre>
The issue is that I cant select what to search for by line number. All i need is a simple way to add textbox values to a text file where each texbox has its own line in the text file, and I can call up the text file at a certain line of the file and read the contents/make it the textbox text. The data is numerical. I came across hash tables but I do not know how to implement them/save them to a file.
|
|
|
|
|
One approach is to use a xml file.
Lots of examples on the web of how to do this.
Try looking at this[^]
|
|
|
|
|
Awesome advice! Thnks! Here is a website for anyone who is curious as to how to work with XML from the gorund up. Very comprehensive tutorials.
http://www.c-sharpcorner.com/uploadfile/mahesh/readwritexmltutmellli2111282005041517am/readwritexmltutmellli21.aspx
|
|
|
|
|
the simplest solution probably goes like so:
- keep key,value pairs in the file, one per line, all keys unique, key and value separated by some symbol (= seems the obvious choice);
- read all lines with File.ReadAllLines
- inside a foreach loop, split the line using string.Split('=',2), use the first part as a key, the second as a value, and stuff that into a Dictionary
Done. Less than 10 lines of code.
|
|
|
|
|
Possibly dumb question but how do I use the key you stated? I know its an identifier for the value string but do i just use my code to search for it? Like <code> if (s.IndexOf("fn:") != -1) </code> ? or what?
|
|
|
|
|
You create the dictionary like so (omitting error handling):
Dictionary<string, string> dict=new Dictionary<string, string>();
foreach(string s in File.ReadAllLines(path)) {
string parts[]=string.Split('=', 2);
dict.Remove(parts[0]);
dict.Add(parts[0], parts[1]);
}
You look up a key's value by using the key as an index to your dictionary, like so:
string name=dict["Name"];
You enumerate all key-values (maybe not in original order!) like so:
foreach (KeyValuePair<string, string> kvp in dict) {
log(kvp.Key+"="+kvp.Value);
}
You could also prepopulate the dictionary with default values for some keys:
dict.Add("Name", "Jef");
dict.Add("Occupation", "Software Engineer");
|
|
|
|