How to find the sync_guid of an existing internet search engine? - sharepoint

Actually, i am trying to find the "sync_guid" of several searchs engines like DuckDuckGo, Ask, and several others.
I have find this answer:
https://sharepoint.stackexchange.com/questions/26362/how-to-know-the-guid-of-a-database
But i am not familiar with theses cmdlet commands.
And i have found this:
http://www.sharepointdiary.com/2013/02/find-guid-of-webapp-site-collection-web-list-view-column.html
After having install an Windows Server 2008 R2 and the SharePoint 2010 setup, i try to understand how to get this settings.
At the configuration wizard step, i must enter the "Database server" and the "Database name".
I'm not familiar with SharePoint either, but as far as I understand it's impossible for me to synchronize a database of an external site, right?
If anyone could enlighten me on this.
Thanks.

Related

How to run an instance of Excel Online on my own domain?

I stumbled on this website and found it very interesting because I'm trying to do the same thing: run Excel Online on my own domain. I tried Googling around without success. Does anyone have a resource or approach to this problem (see image for more information*) ?
I think you would need to Configure your Online Office Server:
Configure Office Online Server for SharePoint Server 2016
They may be using one of the following: CSPP or using their own domain.

VS 2012 Automatically updating IIS path on launch

My employer recently upgraded us from VS 2010 to VS 2012. It's been great, but there is one minor annoyance that I'm hoping someone here can help with. In VS 2010 when I switched branches it would ask me whether I wanted to update the IIS paths. Something along the lines of "the path for port:blah is pointing here. Would you like to change it?" VS 2012 doesn't bother asking. It just changes it. I can't seem to find a setting that discourages this behavior, so I'm hoping someone else out there has. Searching IIS on any site brings up way too many results to sift through, especially considering that only one (a topic from this forum, actually) of the first thirty or so had anything to do with IIS and Visual Studio updating the paths (sadly not related to this issue). Any help would be much appreciated.
EDIT: I found the exact message. It reads: "The Web project '...' is currently configured to use the URL '...'. The Web server has this URL mapped to a different folder '...'. Would you like to remap this URL to point to this Web project's folder?"
I took this question to the MSDN forums. I received an answer there so I am just linking this question to the MSDN question.
MSDN forum question
Request on visualstudio.uservoice.com
Just my work around for this problem:
In IIS Manager, I created Sites for each branch, then I configured them using different Ports.
Open each of the web projects in VS2012, then set the properties as:
Start Action = Don't open a page. Wait for request from external application.
Servers = Local IIS
Project URL: http://localhost:[PORT for this site on IIS]
This way, VS2012 will not modify the web port & path. I can still debug with different branches.
Is that helping you ?

How do I know which database is configured SharePoint?

I'm in a machine that has already SharePoint installed, so when I started the SharePoint Central Administration to config, this message appear to me: "Can not connect to the database configuration."
How do I know which database is configured SharePoint?
Normally the Admin database is created using the naming convention SharePoint_AdminContent_{GUID}. However if there's more than one, you'll need to use SQL Management studo or other tool to look inside the DBs, look for a table called "DatabaseInformation" which will contain two items, look in the AlternateAccessMappingXML entry and look for the XML tage IncomingUrl, that should help you narrow it down.
Or just use the SQL profiler and watch for connections.
By default SharePoint will install the Database on the same machine as the web server, but you can ask whoever installed SharePoint on the machine.
Anyhow, most likely it's not relevant and something else is the problem, follow the resolution methods described here and you'll probably have it fixed.

SharePoint 2010 Search not working

I have installed and configured SharePoint 2010 to run on the same box as the SQL Server its running from in Windows Server 2008 R2. Everything is working fine except the search. I have uploaded several documents and tagged several items (documents, tasks, announcements etc), however whenever I search the site using the defaul search, i get nothing returned no matter what i search on, I simply get "We did not find any results for [search term]". I know there is setup needed if you wish to use "FAST search", but do I have to do anything to get the standard default search to work?
Found the answer on SharePoint.SE:
After installing the system you need to configure your indexing job.
Navigate to CA > Service Applications > Search.
You will see a link to your Content Sources. If you edit that it will give you the opportunity to setup a schedule for both Full and Incremental indexing.
You can kick off a full crawl, once completed you will have results if everything is configured correctly.
It does work for people search too . if you edit this content source you will see sps protocol which is for user profiles .
To make people search to work, in Central Administration > Manage Service Applications, make sure to provide a valid domain\user account as administrator in User Profile Service Application.
To add on to Chensformers answers, the account has to have "Retrieve People Data for Search Crawlers" enabled. They have to have it in the Administrators button, even if the Permissions is set to Full Control! Quite misleading.

How Can I Find Out *HOW* My Site Was Hacked? How Do I Find Site Vulnerabilities?

One of my custom developed ASP.NET sites was hacked today: "Hacked By Swan (Please Stop Wars !.. )"
It is using ASP.NET and SQL Server 2005 and IIS 6.0 and Windows 2003 server.
I am not using Ajax and I think I am using stored procedures everywhere I am connecting to the database so I dont think it is SQL injection.
I have now removed the write permission on the folders.
How can I find out what they did to hack the site and what to do to prevent it from happening again?
The server is up to date with all Windows updates.
What they have done is uploading 6 files (index.asp, index.html, index.htm,...) to the main directory for the website.
What log files should I upload?
I have log files for IIS from this folder: c:\winnt\system32\LogFiles\W3SVC1.
I am willing to show it to some of you but don't think it is good to post on the Internet. Anyone willing to take a look at it?
I have already searched on Google but the only thing I find there are other sites that have been hacked - I haven't been able to see any discussion about it.
I know this is not strictly related to programming but this is still an important thing for programmers and a lot of programmers have been hacked like this.
It appears that the attack on your website was part of a mass defacement carried out by SWAN on 21 November, 2008 against Windows 2003 and Windows 2000 boxes running IIS 6.0. Others here have suggested a number of things. I would only add that whenever you decide to bring up the website, please format the box and reinstall from scratch. Once a box is compromised, it cannot be trusted, at all, however you clean and purify it.
IIS Process
Check that your ASPNET process does not have privilage to write files on the server. If you need the process to have write permissions, allow them only to do so on a specific folder, and deny execute permissions on that folder for all User accoutns.
SQL Injection
To see people looking for SQL vunrabilities have a look in your log files for the following text, "CAST(".
Do you have any places where you build up SQL in the code behind to query the database? These can be prone to SQL injection attacks. By replacing code such as the following you will be more safe.
Dim strSQL As String = "Select * FROM USERS Where name = '" & Response.Querystring("name") "'"
then consider an alternative like the following.
Dim strSQL As String = "Select * FROM USERS Where name = #name"
and then adding the corresponding SQL PArameter to the sql command.
Hopefully you've had your IIS logfiles turned on and hopefully the hacker didn't erase them. By default they're located here: c:\winnt\system32\LogFiles\W3SVC1 and will generally be named after the date.
Then it's probably helpful to figure out how to use log parser (from Microsoft), which is free. Then use this guide to help you with looking forensically at your logfiles. Do you have a firewall because it's syslogs might be helpful.
Another decent tool to help you find sql injection issues is to go here and download HP's Scrawlr.
If you have any more questions about what you've found, come back and ask.
Well, for starters:
Have you patched your server?
Do you have lingering remnants of things like FrontPage Server Extensions, Office extensions for web, etc.?
Have you made sure you don't have SQL Injection vulnerabilities?
Have you googled for that text, "Hacked by swan"? There are many hits, perhaps one of them has figured out his entrance
If you do have, or is unsure about, whether you have SQL Injection problems or not, then you can ask further here, but otherwise I would get some security experts to help you.
This is indeed a programming site, so unless your problem is programming-related, it will most likely be closed again.
You might want to give try it using a penetration toolkit like Metasploit to discover any obvious holes.
Also, please post your log files if they are untampered with.
The first thing you should do is check your log files. You could paste them here,and we'll tell you if we recognize an attack .
Set up Google Analytics and review all requests that were made to your website.
If you are dealing with SQL injection through the query string you an easily find out what they did, and how they found your vulnerabilities.
Is FTP turned on?
I once had a customer's who had left their FTP turned on for some reason, and the hacker had just set a bot running, trying random/common user/password combinations. That hack was worse than yours because it didn't show on the web pages, but tried to install an ActiveX...
So, you could check your FTP log.

Resources